当前位置:网站首页>AIO Introduction (VIII)

AIO Introduction (VIII)

2022-06-13 06:43:00 Night ask

JavaAIO Basic introduction

  1. JDK 7 Introduced Asynchronous I/O, namely AIO. It's going on I/O Programming , Two modes are commonly used :Reactor and Proactor.Java Of NIO Namely Reactor, When an event triggers , The server side is notified , Deal with it accordingly

  2. AIO namely NIO2.0, be called Asynchronous does not block Of IO.AIO Introduce the concept of asynchronous channel , Adopted Proactor Pattern , Simplified programming , Valid request to start thread , Its characteristic is to inform the server program to start the thread to process after the operating system completes , Generally, it is suitable for applications with more connections and longer connection time

  3. at present AIO It's not widely used yet ,Netty Is based on NIO, instead of AIO, I won't explain it in detail AIO 了 , Sure ginseng Examination <<Java new One generation network Collateral Ed cheng model type AIO primary The reason is And Linux system system AIO Medium Shao >>
    http://www.52im.net/thread-306-1-1.html

1.BIO、NIO、AIO Comparison table

原网站

版权声明
本文为[Night ask]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202270552173106.html