aboutsummaryrefslogtreecommitdiffstats
path: root/man7/sched.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-11-27 19:22:05 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-11-27 19:27:45 +0100
commitd145138ee0e69102242f26df852ed91558d7e6ba (patch)
treed1372f1092826433373bee6ae8d99a2f1e9546eb /man7/sched.7
parent40f0931ccb165e35147007f865d0c235c47747ff (diff)
downloadman-pages-d145138ee0e69102242f26df852ed91558d7e6ba.tar.gz
sched.7: Add a new introductory paragraph describing the nice value
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/sched.7')
-rw-r--r--man7/sched.713
1 files changed, 13 insertions, 0 deletions
diff --git a/man7/sched.7 b/man7/sched.7
index cae43fe134..c2ff00bbed 100644
--- a/man7/sched.7
+++ b/man7/sched.7
@@ -380,6 +380,19 @@ 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
+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.
+
The range of the nice value
varies across UNIX systems.
On modern Linux, the range is \-20 (high priority) to +19 (low priority).