SLEEP(3C) COMMAND REFERENCE SLEEP(3C)
NAME
sleep - suspend execution for interval
SYNOPSIS
sleep(seconds)
unsigned seconds;
DESCRIPTION
The current process is suspended from execution for the
number of seconds specified by the argument. The actual
suspension time may be up to one second less than that
requested, because scheduled wakeups occur at fixed one-
second intervals, and at a longer, arbitrary amount because
of other activity in the system.
The routine is implemented by setting an interval timer and
pausing until it occurs. The previous state of this timer
is saved and restored. If the sleep time exceeds the time
to the expiration of the previous timer, the process sleeps
only until the signal would have occurred; and the signal is
sent one second later.
CAVEATS
An interface with finer resolution is needed.
SEE ALSO
sigpause(2), setitimer(2).
Printed 10/17/86 1
%%index%%
na:72,74;
sy:146,281;
de:427,781;
ca:1208,102;
se:1310,146;
%%index%%000000000093