Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sleep(3) — Dell System V Release 4 Issue 2.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sigpause(3)

usleep(3)

getitimer(2)



sleep(3)           UNIX System V(BSD Compatibility Package)            sleep(3)


NAME
      sleep - suspend execution for interval

SYNOPSIS
      cc [ flag. . . ] file . . . -lucb

      sleep(seconds)
      unsigned seconds;

DESCRIPTION
      sleep suspends the current process from execution for the number of
      seconds specified by the argument.  The actual suspension time may be up
      to 1 second less than that requested, because scheduled wakeups occur at
      fixed 1-second intervals, and may be an arbitrary amount longer because
      of other activity in the system.

      sleep is implemented by setting an interval timer and pausing until it
      expires.  The previous state of this timer is saved and restored.  If the
      sleep time exceeds the time to the expiration of the previous value of
      the timer, the process sleeps only until the timer would have expired,
      and the signal which occurs with the expiration of the timer is sent one
      second later.

SEE ALSO
      sigpause(3), usleep(3)

      getitimer(2) in the Programmer's Reference Manual



























10/89                                                                    Page 1





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