sched.7: Minor text reorganization

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-11-27 19:25:05 +01:00
parent 927d0dfaa7
commit 2be50a325d
1 changed files with 6 additions and 5 deletions

View File

@ -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.