sleep()ing less than a second
Guy Harris
guy at auspex.auspex.com
Thu Dec 21 08:48:54 AEST 1989
> Some time ago, I was posed with the problem of doing the equivalent
>of nap() on BSD.
The equivalent of "nap" in 4.3BSD is "usleep", and comes with the
system. In 4.2BSD, you can either use "setitimer" etc. as you've done,
or you can use "select".
>Since SysV had nap(),
Correction. *Some* versions of System V *may* have "nap()"; I don't
think it's universally available. In System V Release 3, you may be
able to use "poll" in much the same way you use "select" in 4.2BSD.
More information about the Comp.unix.questions
mailing list