Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Simple question about sleep function

by Discipulus (Canon)
on Sep 23, 2016 at 10:51 UTC ( [id://1172449]=note: print w/replies, xml ) Need Help??


in reply to Simple question about sleep function

the four arg form of select allow to sleep for less than 1 second wich is the minimum for sleep

iirc there were also something with block nonblock mode related to threads. or related to alarm (update: was this; see Alternatives to Mixing Alarm and Sleep).

In most cases your snippets behave identically,though.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

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

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

    No recent polls found