Synchronous non-blocking NIO

Synchronous non-blocking NIO

Here Insert Picture Description
Synchronous non-blocking features: threaded applications need to constantly be IO system calls, whether polling data is ready, if not ready, we continue to poll until the completion of IO system calls so far.
Synchronization features a non-blocking IO's: Each time you start the IO system call, the kernel can return immediately the process of waiting for data. User thread is not blocked, better real-time.
The disadvantage of synchronous non-blocking IO: constantly polling the kernel, which will take up a lot of CPU time and inefficient.
Overall, under high concurrency scenarios, synchronous non-blocking IO also unavailable. This Web server IO models generally do not apply. This IO model is rarely used directly Twenty use non-blocking IO IO this feature in other models. In the actual development of Java, this will not involve IO model.
Synchronous non-blocking IO, referred NIO, however, this refers not NIO in Java, the Java NIO refers New IO, IO corresponding to the four basic model IO multiplexed (Multiplexing IO)

Published 242 original articles · won 97 Like · views 590 000 +

Guess you like

Origin blog.csdn.net/u010838785/article/details/104455223