المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : TCP Connections and Threads



C# Programming
11-08-2009, 11:40 AM
Hi,
I have been thinking... Let's assume that I have a server application and lots of clients all over the world connect to my server by using TCP protocol. When a client sends me a connection request, my server application creates a thread for the client and do the rest of the communication in that thread. As far as I know, after some number of threads, operating system starts to get mad and refuses to create more threads. This causes my application to deny to service.

How is this problem solved? Am I missing a point?

Thanks in advance.