aboutsummaryrefslogtreecommitdiffstats
path: root/man7/sched.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-11-27 19:25:05 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-11-27 19:27:46 +0100
commit2be50a325dc57cac91e807342f97d36cd16831da (patch)
treee40692ffe4152015c0b74295f77d122ae88a02e8 /man7/sched.7
parent927d0dfaa71af204da68c9560e3a23759b0af105 (diff)
downloadman-pages-2be50a325dc57cac91e807342f97d36cd16831da.tar.gz
sched.7: Minor text reorganization
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/sched.7')
-rw-r--r--man7/sched.711
1 files changed, 6 insertions, 5 deletions
diff --git a/man7/sched.7 b/man7/sched.7
index 798cb87efe..48403025d1 100644
--- a/man7/sched.7
+++ b/man7/sched.7
@@ -370,11 +370,7 @@ real-time mechanisms.
The thread to run is chosen from the static
priority 0 list based on a \fIdynamic\fP priority that is determined only
inside this list.
-The dynamic priority is based on the nice value (set by
-.BR nice (2),
-.BR setpriority (2),
-or
-.BR sched_setattr (2))
+The dynamic priority is based on the nice value (see below)
and is increased for each time quantum the thread is ready to run,
but denied to run by the scheduler.
This ensures fair progress among all \fBSCHED_OTHER\fP threads.
@@ -392,6 +388,11 @@ 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 nice value can be modified using
+.BR nice (2),
+.BR setpriority (2),
+or
+.BR sched_setattr (2).
The range of the nice value
varies across UNIX systems.