处理时间与 I/O 时间对吞吐率的影响比较

image.png

image.png
image.png
image.png

Blocking I/O Model(阻塞式I/O模型)

image.png

Nonblocking I/O Model(非阻塞式I/O模型)

image.png
当应用程序像这样在非阻塞描述符上处于调用recvfrom的循环中时,称为轮询。 该应用程序不断轮询内核,以查看是否已准备好某些操作。 这通常会浪费CPU时间。

I/O Multiplexing Model(I/O复用模型)

image.png

Signal-Driven I/O Model

image.png


Asynchronous I/O Model

image.png

Comparison of the I/O Models

image.png
image.png