Re: [Jsonrpc-cpp-devel] Multithreaded server
Brought to you by:
s-vincent
From: PEI N. <pei...@gm...> - 2012-02-15 00:26:08
|
My program uses only one thread for treatments. I think Recv should create his own thread. The "select" function allows some concurrent connections. But when the connections are about hundreds the server is dead, takes all memory and sleeps ... So, make the Recv function to create his own thread, run it and closes the socket. Why should we use a Mutex ? I hope the server's methods can be used concurrently. If it can't, does that mean that multithreaded server is useless ? |