D-Fan
2008-07-31 19:20:21 UTC
I am writing a server process that will communicate with multiple pc's
on an as needed basis. I might have 200 - 300 PC's connected at the
same time. If I see a certain flag set I want to be able to send the
user a message. Is it best to have a thread per user to handle this
message communication or is a thread pool better at handling this?
If I use a thread pool how can I manage it so that different threads
look at different client connections?
on an as needed basis. I might have 200 - 300 PC's connected at the
same time. If I see a certain flag set I want to be able to send the
user a message. Is it best to have a thread per user to handle this
message communication or is a thread pool better at handling this?
If I use a thread pool how can I manage it so that different threads
look at different client connections?