in reply to Sleep has high cpu
In addition to brothers BUU and BrowserUk's apt wisdom, you may find this node by good monk Albannach to be of interest:
cheers,
Don
striving toward Perl Adept
(it's pronounced "why-bick")
"while(1){} isn't idle, it's spinning madly behind the scenes, testing 1 as often as possible."
cheers,
Don
striving toward Perl Adept
(it's pronounced "why-bick")
Update: PM Search Is Your FriendTM 8^)
In Section
Seekers of Perl Wisdom