dts124 wrote:
> Problem:
> after 1-st client connection CPU usage of this service is 50%(probably
> because my CPU is Pentium D), after 2nd - 99% and remains 99% until
> service is stopped regardless that all clients are disconnected.
>
> After i added Sleep(10); into
>   "while not Terminated do" loop of procedure TEchoThread.Execute;
> CPU usage dropped to 0, now it seems OK, but is this the right way to
> arrange service with threads for socket connections?

You should not need any loop at all. Why do you have it? Post the code of
your Execute method.

-- 
Rob


Reply via email to