Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: fork() doesn't care about my sleep()?

by ikegami (Patriarch)
on Nov 10, 2010 at 23:51 UTC ( [id://870730]=note: print w/replies, xml ) Need Help??


in reply to fork() doesn't care about my sleep()?

use Time::HiRes qw( time sleep ); sub unint_sleep($) { my $sleep_til = time + $_[0]; for (;;) { my $sleep_dur = time - $sleep_til; last if $sleep_dur <= 0; sleep($sleep_dur); } }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://870730]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-19 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found