Performance of select/poll vs asynchronous I/O

后端 未结 2 1701
死守一世寂寞
死守一世寂寞 2021-02-02 04:44

From a performance standpoint, which one is better? select/poll or asynchronous I/O? My earlier impression was select/poll repeatedly asks the kernel for data, whereas asynchron

2条回答
  •  感情败类
    2021-02-02 05:10

    With async I/O, you have to loop continiously and check to see if there is new data to read periodically. This makes it CPU intensive. Select/poll simply blocks, taking up no CPU power. It does not loop internally.

提交回复
热议问题