...只有发overlapped请求的线程才可以提供callback函数(需要一个特定的线程为一个特定的I/O请求服务)。 完成端口(I/O completion)的优点: 不会限制handle个数,可处理成千上万个连接。
基于20个网页-相关网页
The CreateIoCompletionPort function associates an I/O completion port with one or more file handles.
CreateIoCompletionPort函数会使一个I/O完成端口与一个或多个文件句柄发生关联。
There have been many new APIs proposed to improve the scalability, such as /dev/poll, real-time signals, I/O completion ports, /dev/epoll, and kernel queues.
为了提高可伸缩性,已经提出了许多新的 API,比如 /dev/poll、实时信号、I/O 完成端口、/dev/epoll 和内核队列。
This also means that when you are sending the data by posting a send request on the I/O completion port, the data can actually be sent in a reordered way.
这也意味着,当你发送数据的公布发送请求的I / O完成端口,数据实际上可以被重新排序的方式。
应用推荐