From 2493644834b97e46121fced72dc856fa368cef6d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 3 Feb 2013 05:36:26 +0100 Subject: [PATCH] getpriority.2: BUGS: note that nice value is per-thread on Linux Signed-off-by: Michael Kerrisk --- man2/getpriority.2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/man2/getpriority.2 b/man2/getpriority.2 index 2e09a40d9..be3e8de88 100644 --- a/man2/getpriority.2 +++ b/man2/getpriority.2 @@ -220,6 +220,14 @@ structure with fields of type .I struct timeval defined in .IR .) +.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),