Are we really chasing the right issue?
Posted Feb 24, 2012 10:20 UTC (Fri) by anselm
In reply to: Are we really chasing the right issue?
Parent article: Short sleeps suffering from slack
Who decided my sleep(1) could wait several seconds and not just the 1 I coded?
The person who wrote the spec for sleep(), which says, among other things:
The suspension time may be longer than requested due to the scheduling of other activity by the system.
So if you believe that »sleep(1)« will sleep for exactly one second, you are mistaken about how sleep() works.
to post comments)