Hi,
What the timeout of your socket_select ?
Because when the timeout is NULL or a big value your script normally
'sleep' when nothing append.
Eric
At 15:14 11/11/2003, Alex wrote:
Hello ALL!
I've made an IRC client with DCC support (it uses many sockets)
I use socket_select in an infinite loo
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
usa