Problem with Socket and CPU usage!
| From: | Alex | Date: | Tue, 11 Nov 2003 14:14:38 +0000 |
| Subject: | Problem with Socket and CPU usage! | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-22069@lists.php.net to get a copy of this message | ||
Hello ALL!
I've made an IRC client with DCC support (it uses many sockets)
I use socket_select in an infinite loop. All works fine, but the
problem is CPU usage. When I start my script CPU-usage rises to 100%
and stops there :(
So I wander is there any way to optimize the code to lower the CPU
usage? It is really a big problem running this script cause it slows
down other programs.
HELP me please!
Thanks for attention!
Best regards to all!