BSD 4_4 development
[unix-history] / usr / share / man / cat3 / nice.0
NICE(3) BSD Programmer's Manual NICE(3)
N\bNA\bAM\bME\bE
n\bni\bic\bce\be - set program scheduling priority
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
n\bni\bic\bce\be(_\bi_\bn_\bt _\bi_\bn_\bc_\br);
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
T\bTh\bhi\bis\bs i\bin\bnt\bte\ber\brf\bfa\bac\bce\be i\bis\bs o\bob\bbs\bso\bol\ble\bet\bte\bed\bd b\bby\by s\bse\bet\btp\bpr\bri\bio\bor\bri\bit\bty\by(\b(2\b2)\b).\b.
The n\bni\bic\bce\be() function obtains the scheduling priority of the process from
the system and sets it to the priority value specified in _\bi_\bn_\bc_\br. The pri-
ority is a value in the range -20 to 20. The default priority is 0; low-
er priorities cause more favorable scheduling. Only the super-user may
lower priorities.
Children inherit the priority of their parent processes via fork(2).
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
nice(1), setpriority(2), fork(2), renice(8)
H\bHI\bIS\bST\bTO\bOR\bRY\bY
A n\bni\bic\bce\be() syscall appeared in Version 6 AT&T UNIX.
4th Berkeley Distribution June 4, 1993 1