Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Support a large amount of clients and lower CPU cost?
| Subject: | Support a large amount of clients and lower CPU cost? |
| Posted by: | "H Visli" (h_vis..@gmail.com) |
| Date: | Thu, 1 Nov 2007 07:55:15 +0000 (UTC) |
Hi all,
I'm writing a Socket server(TCP). I use long connection between server and
clients, the frequency of data transmission is up to 1-2 seconds. I develop
under Synapse library, use a thread to monitor the connection request of
the client, and create a corresponding thread for each client.
Now test results is: If there are 200 clients, the server's CPU utilization
rate will be around 40%!
Anybody can give me some advice or experience, can support a large amount
of clients at the same time, and the CPU expenses can control more low?
Thanks!