I/O completion port's advantages and disadvantages

前端 未结 3 1563
感情败类
感情败类 2020-12-07 10:18

Why do many people say I/O completion port is fast and nice model?
What is the I/O completion port\'s advantages and disadvantages?

I want to know some points

3条回答
  •  情书的邮戳
    2020-12-07 10:47

    by using IOCP, we can overcome the "one-thread-per-client" problem. It is commonly known that the performance decreases heavily if the software does not run on a true multiprocessor machine. Threads are system resources that are neither unlimited nor cheap.

    IOCP provides a way to have a few (I/O worker) threads handle multiple clients' input/output "fairly". The threads are suspended, and don't use the CPU cycles until there is something to do.

    Also you can read some information in this nice book http://www.amazon.com/Windows-System-Programming-Johnson-Hart/dp/0321256190

提交回复
热议问题