From 2be50a325dc57cac91e807342f97d36cd16831da Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 27 Nov 2016 19:25:05 +0100 Subject: [PATCH] sched.7: Minor text reorganization Signed-off-by: Michael Kerrisk --- man7/sched.7 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/man7/sched.7 b/man7/sched.7 index 798cb87ef..48403025d 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.