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