New thread per client connection in socket server?
Posted
by Olaseni
on Stack Overflow
See other posts from Stack Overflow
or by Olaseni
Published on 2010-03-24T05:33:12Z
Indexed on
2010/03/24
5:43 UTC
Read the original article
Hit count: 191
I am trying to optimize multiple connections per time to a TCP socket server.
Is it considered good practice, or even rational to initiate a new thread in the listening server every time I receive a connection request?
At what time should I begin to worry about a server based on this infrastructure? What is the maximum no of background threads I can work, until it doesn't make any sense anymore?
Platform is C#, framework is Mono, target OS is CentOS, RAM is 2.4G, server is on the clouds, and I'm expecting about 200 connection requests per second.
© Stack Overflow or respective owner