Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sleep(3C) — UTek 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sigpause(2)

setitimer(2)



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) and setitimer(2).




























Printed 5/12/88                                                 1





































































%%index%%
na:288,90;
sy:378,433;
de:811,825;
ca:1636,130;
se:1766,177;
%%index%%000000000094

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026