BSD 3 development
[unix-history] / usr / man / man2 / nice.2
CommitLineData
e6817382
BJ
1.TH NICE 2
2.SH NAME
3nice \- set program priority
4.SH SYNOPSIS
5.B nice(incr)
6.SH DESCRIPTION
7The scheduling
8priority of the process is augmented by
9.IR incr .
10Positive priorities get less
11service than normal.
12Priority 10 is recommended to users
13who wish to execute long-running programs
14without flak from the administration.
15.PP
16Negative increments are ignored except on behalf of
17the super-user.
18The priority is limited to the range
19\-20 (most urgent) to 20 (least).
20.PP
21The priority of a process is
22passed to a child process by
23.IR fork (2).
24For a privileged process to return to normal priority
25from an unknown state,
26.I nice
27should be called successively with arguments
28\-40 (goes to priority \-20 because of truncation),
2920 (to get to 0),
30then 0 (to maintain compatibility with previous versions
31of this call).
32.SH "SEE ALSO"
33nice(1)
34.SH "ASSEMBLER (PDP-11)"
35(nice = 34.)
36.br
37(priority in r0)
38.br
39.B sys nice