Overlapped I/O
摘要:Overlapped I/O是Windows系统上的Asynchronous I/O implementation。啥叫asynchronous I/O ?借用Linux Man page中对AIO的介绍:The POSIX asynchronous I/O (AIO) interface allows applications to initiate one or more I/O operations that are performed asynchronously (i.e., in the background). The application can elect to be no
阅读全文
关于IOCP的方方面面
摘要:与IOCP相关的数据结构和API IOCP是以OVERLAPPED IO为基础的。 HANDLE WINAPI CreateIoCompletionPort( __in HANDLE FileHandle, __in_opt HANDLE ExistingCompletionPort, __in ULONG_PTR CompletionKey, __in DWORD NumberOfConcurrentThreads); 用 途:创建一个IOCP port并将一个file handle与之关联;创建一个没有file handle 关联的IOCP port,之后可以再关联。将一个已经打开的fi.
阅读全文