IO Completion ports
-
Hello all Can any one please tell me when to use IO Completion ports with sockets? When we want to handle asynchronous read or write operations we can do with event objects then why to use IO Completions ports? Please advice .. Thanks for your help. Amarelia Maehsh Gujarat India
-
Hello all Can any one please tell me when to use IO Completion ports with sockets? When we want to handle asynchronous read or write operations we can do with event objects then why to use IO Completions ports? Please advice .. Thanks for your help. Amarelia Maehsh Gujarat India
You could follow the link below and start by reading Len Holgate's series - 3 articles in this series, plus some extra 'offshoots' http://www.codeproject.com/internet/jbsocketserver1.asp[^] 'G'
-
Hello all Can any one please tell me when to use IO Completion ports with sockets? When we want to handle asynchronous read or write operations we can do with event objects then why to use IO Completions ports? Please advice .. Thanks for your help. Amarelia Maehsh Gujarat India
we have a server app that used to create a thread for each connection. This was fine for 100 users but was too slow for 1000's of connections I changed it to use asynchronous io and a completion port with a fixed number of threads, one listener, one receiver, one worker per cpu and a couple of others for timing, cache purging etc. The listener accepts connections and assosiates them with the completion port, the receiver waits on the completion port and generates job objects based on the received message. These are then queued and processed by the worker threads. This has worked very well in production (most customers have very high end multiprocessor boxes) with 1000's of connections