Quote Originally Posted by hashimov View Post
I change my code for one thread for serving all tcpsocket. And the result was no effective. because when sockets count increases the waiting packages also increases, and the bad think that it concatenates the packages which comes from the same socket, for example the socket every 1 second sends "Socket", in this case in my database inserts "SocketSocket", some times many times "SocketSocket....Socket". And CPU works in 99%. But in multi thread version CPU works 1-2%.
My assumption is that you simply didn't do it correctly.