Sub-Second Sleeps
- We all know how to sleep in our code using the 'sleep()' function.
- (which uses ALRM signals, and is thus not useful in multi-threaded
programs).
- Sometimes we want to sleep for less then a second.
- Let us avoid real-time constraints here, and deal with 'best-effort'
attempts.
Originally written by
guy keren