I found using Time::HiRes to put a micro sleep inversely proportional to the number of active connections stopped the process from spinning out of control and allowed the OS to pre-empt the loop.
Thanks
UnderMine
In reply to Re: Re: Sleep has high cpu (sleep spins madly behind the scenes)
by UnderMine
in thread Sleep has high cpu
by slojuggler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |