sleep()ing less than a second

Allott P peter at sersun1.essex.ac.uk
Tue Dec 19 23:03:28 AEST 1989


In article <89348.231211BACON at MTUS5.BITNET> BACON at MTUS5.BITNET (Jeffery Bacon) writes:
>Given sleep(arg); unsigned arg. Nothing new.
>But what if you want to sleep for less than one second, say, 0.5?

It is possible to "sleep" for less than one second by doing a
selcect(.......) with an appropriate value in the timeval (5th param I think)
and with no channels to check (2nd through 4th params I think).
See the documentation for full details.



More information about the Comp.lang.c mailing list