Is non-blocking I/O really faster than multi-threaded blocking I/O? How?

后端 未结 9 1329
礼貌的吻别
礼貌的吻别 2020-11-29 15:09

I searched the web on some technical details about blocking I/O and non blocking I/O and I found several people stating that non-blocking I/O would be faster than blocking I

9条回答
  •  生来不讨喜
    2020-11-29 16:05

    The main reason to use AIO is for scalability. When viewed in the context of a few threads, the benefits are not obvious. But when the system scales to 1000s of threads, AIO will offer much better performance. The caveat is that AIO library should not introduce further bottlenecks.

提交回复
热议问题