getpriority.2: BUGS: note that nice value is per-thread on Linux

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-02-03 05:36:26 +01:00
parent 7d928e0ddc
commit 2493644834
1 changed files with 8 additions and 0 deletions

View File

@ -220,6 +220,14 @@ structure with fields of type
.I struct timeval
defined in
.IR <sys/time.h> .)
.SH BUGS
According to POSIX, the nice value is a per-process setting.
However, under the current Linux/NPTL implementation of POSIX threads,
the nice value is a per-thread attribute:
different threads in the same process can have different nice values.
Portable applications should avoid relying on the Linux behavior,
which may be made standards conformant in the future.
.SH "SEE ALSO"
.BR nice (1),
.BR renice (1),