macros for different classes of network
[unix-history] / .ref-BSD-3 / usr / man / man3 / sleep.3
CommitLineData
e6817382
BJ
1.TH SLEEP 3
2.SH NAME
3sleep \- suspend execution for interval
4.SH SYNOPSIS
5.B sleep(seconds)
6.br
7.B unsigned seconds;
8.SH DESCRIPTION
9The current process is suspended from execution for the number
10of seconds specified by the argument.
11The actual suspension time may be up to 1 second less than
12that requested, because scheduled wakeups occur at fixed 1-second intervals,
13and an arbitrary amount longer because of other activity
14in the system.
15.PP
16The routine is implemented by setting an alarm clock signal
17and pausing until it occurs.
18The previous state of this signal is saved and restored.
19If the sleep time exceeds the time to the alarm signal,
20the process sleeps only until the signal would have occurred, and the
21signal is sent 1 second later.
22.SH "SEE ALSO"
23alarm(2), pause(2)