Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

alarm(3)

pause(3)

sigaction(2)

sleep(3)

shutdown(8)

wall(1)

sleep(3)  —  Subroutines

OSF

NAME

sleep − Suspends execution for an interval

LIBRARY

Standard C Library (libc.a)
Threads Library (libpthreads.a)

SYNOPSIS

unsigned int sleep (
unsigned int seconds );

PARAMETERS

secondsSpecifies the number of seconds to sleep. 

DESCRIPTION

The sleep() function suspends execution of a process for the interval specified by the seconds parameter.  The suspension time may be longer than requested due to the scheduling of other activity by the system. 

In a multi-threaded environment, the sleep() function, is redefined so that only the calling thread is suspended. 

NOTES

AES Support Level:
Full use

RETURN VALUES

If the sleep() function returns because the requested time has elapsed, 0 (zero) is returned.  If the sleep() function returns because a signal was caught, the amount of time still remaining to be "slept" is returned. 

RELATED INFORMATION

Functions: alarm(3), pause(3), sigaction(2), sleep(3)

Commands: shutdown(8), wall(1)

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