CPU在其等待数据时没有事情做,干脆就休眠了。
The CPU has nothing to do while it waits for the data, so it sleeps.
等待数据提交以进行事件测试——大部分现有测试框架没有能力等候多个异步事件。
Wait for the data to be committed for event testing - Large portions of existing testing frameworks do not have the ability to wait for multiple asynchronous events.
但是,假若我们想全部利用IOCP服务器的潜力,我们应该有很多的异步读操作等待数据的到达。
But if we want to use the IOCP server's full potential, we should have several pending asynchronous reads waiting for data to arrive.
应用推荐