138
|
1 <refentry id="sleep">
|
|
2 <refnamediv>
|
|
3 <refname>SLEEP</refname>
|
|
4 <refpurpose>Suspend process for period of time</refpurpose>
|
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <cmdsynopsis>
|
|
9 <command>SLEEP</command>
|
|
10 <arg choice="plain">
|
|
11 &replstart;tick count&replend;
|
|
12 </arg>
|
|
13 </cmdsynopsis>
|
|
14 </refsynopsisdiv>
|
|
15
|
|
16 <refsect1><title>Description</title>
|
|
17 <para>
|
|
18 This command puts the user's process to "sleep" for a number of
|
|
19 clock ticks. It is generally used to generate time delays or to
|
|
20 "break up" CPU-intensive jobs. The duration of a tick is 16.66
|
|
21 milliseconds.
|
|
22 </para>
|
|
23 <para>
|
|
24 A tick count of 1 causes the process to "give up" its current time
|
|
25 slide. A tick count of zero causes the process to sleep
|
|
26 indefinitely (usually awakened by a signal)
|
|
27
|
|
28 </para>
|
|
29 </refsect1>
|
|
30 <refsect1><title>Examples</title>
|
|
31 <screen>
|
|
32 OS9: sleep 25
|
|
33 </screen>
|
|
34 </refsect1>
|
|
35 </refentry>
|
|
36
|