Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

alarm(2)

getitimer(2)

sigblock(3B)

sleep(3C)

ualarm(3B)

usleep(3B)

NAME

usleep − suspend execution for interval in microseconds

SYNOPSIS

/usr/ucb/cc [ flag ... ] file ...

int usleep( useconds)
unsigned useconds;

DESCRIPTION

Suspend the caller for the number of microseconds specified by the argument.  The actual suspension time may be an arbitrary amount longer because of other activity in the system, or because of the time spent in processing the call. 

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 a short time later. 

SEE ALSO

alarm(2), getitimer(2), sigblock(3B), sleep(3C), ualarm(3B)

NOTES

Use of these interfaces should be restricted to only applications written on BSD platforms.  Use of these interfaces with any of the system libraries or in multi-thread applications is unsupported. 

SunOS 5.2  —  Last change: 12 Feb 1993

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