Friday, May 22, 2009

Multi-threaded server

This is a reply to this question on stackoverflow.

Many people "feel" that allocating a thread per socket is a bad idea. This might be true for 10,000 sockets, I don't know; however, for 300 threads which are idle most of the time, this is really not an issue - and hasn't been in Windows since at least Windows 2000.

Here's how this would look on my system:



I am going to put the code in the answer to the stackoverflow question; this is just a placeholder for the above image, mostly :)

No comments: