Is nginx NIO or AIO??

< H1 > premise < / H1 >

Environment: linux
configuration file: use epoll; in nginx.conf

< H1 > personal analysis < / H1 >

of the five IO of linux, this one of epoll is Synchronize non-blocking and belongs to NIO.
when a message comes, the kernel mode notifies the user mode program, and the message kernel state requires the user mode to retrieve the message.
requires the user to participate in IO.

so I think it"s NIO.

Mar.21,2021

http://www.aosabook.org/en/ng., just look at the architecture diagram. It's non-bloking io

.
Menu