diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-11-28 07:06:59 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-11-28 07:06:59 +0100 |
| commit | bcbb240cf44d3e87a97b971243a1b17c059cbd75 (patch) | |
| tree | 0277362945aed2c0a8a28118704097fb200abb6e /man7/sched.7 | |
| parent | 31046c3cbdd05acbae97881728333cc251f6f3e9 (diff) | |
| download | man-pages-bcbb240cf44d3e87a97b971243a1b17c059cbd75.tar.gz | |
sched.7: Minor rewording of discussion of nice value
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/sched.7')
| -rw-r--r-- | man7/sched.7 | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/man7/sched.7 b/man7/sched.7 index 4fe49e29f6..a4120fa5a4 100644 --- a/man7/sched.7 +++ b/man7/sched.7 @@ -388,24 +388,25 @@ but denied to run by the scheduler. This ensures fair progress among all \fBSCHED_OTHER\fP threads. .\" .SS The nice value -The nice value is a per-process attribute +The nice value is an attribute that can be used to influence the CPU scheduler to favor or disfavor a process in scheduling decisions. It affects the scheduling of .BR SCHED_OTHER and .BR SCHED_BATCH -(see below) -processes. -According to POSIX.1, the threads in a process should share a nice value. -However, on Linux, the nice value is a per-thread attribute: -different threads in the same process may have different nice values. +(see below) processes. The nice value can be modified using .BR nice (2), .BR setpriority (2), or .BR sched_setattr (2). +According to POSIX.1, the nice value is a per-process attribute; +that is, the threads in a process should share a nice value. +However, on Linux, the nice value is a per-thread attribute: +different threads in the same process may have different nice values. + The range of the nice value varies across UNIX systems. On modern Linux, the range is \-20 (high priority) to +19 (low priority). |
