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.