File:  [Research Unix] / researchv10dc / 630 / man / src / p_man / man3 / sleep.3r
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.ds ZZ DEVELOPMENT PACKAGE
.TH SLEEP 3R "630 MTG"
.XE "sleep()"
.XE "nap()"
.SH NAME
sleep, nap \- suspend program execution
.SH SYNOPSIS
\f3
void sleep (nticks)
.sp
void nap (nticks)
.sp
unsigned int nticks;
\fR
.SH DESCRIPTION
The
.I nap
function
busy loops for
.I nticks
ticks of the 60 Hz internal clock.
To avoid interfering with screen refresh,
programs drawing rapidly changing scenes should
.I nap
for a couple ticks
between updates
to synchronize the display and memory.
.PP
The
.I sleep
function
is identical to
.I nap
except that it gives up the processor for the interval.
\f2Sleep\f1 should be used in preference to \f2nap\f1 unless there is some
reason why other applications should not be allowed to run.
A process
that never calls
.I wait
or
.I sleep
can lock out all other 630 MTG processes.
.PP
.SH SEE ALSO
resources(3R).

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.