📄 nice.3
字号:
.\" SCCSID: @(#)nice.3 8.4 1/30/91.TH nice 3.SH Namenice \- set program priority.SH Syntax.B int nice(incr).br.B int incr;.SH Description.NXR "nice subroutine".NXR "priority" "setting"The schedulingpriority of the process is augmented by.IR incr .Positive priorities get lessservice than normal.Priority 10 is recommended to userswho wish to execute long-running programswithout flack from the administration..PPNegative increments are ignored except on behalf of the super-user.The priority is limited to the range\-20 (most urgent) to 20 (least)..PPThe priority of a process ispassed to a child process by .MS fork 2 .For a privileged process to return to normal priorityfrom an unknown state,.PN niceshould be called successively with arguments\-40 (goes to priority \-20 because of truncation),20 (to get to 0),then 0 (to maintain compatibility with previous versionsof this call)..SH EnvironmentIn any mode, nice returns -1 and sets .PN errnoon an error. On success, the return value depends on the mode in which yourprogram was compiled. In POSIX or System V mode, it is the newpriority; otherwise, it is zero. Note that, in POSIX andSystem V mode, -1 can indicate either success or failure;.PN errnomust be used to determine which..SH See Alsonice(1), fork(2), setpriority(2), renice(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -