nice(2) System Calls Manual nice(2) nice - LIBRARY Standard C library (libc, -lc) #include int nice(int inc); glibc (. feature_test_macros(7)): nice(): _XOPEN_SOURCE || /* glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE nice() adds inc to the nice value for the calling thread. (A higher nice value means a lower priority.) : +19 ( ) -20 ( ). . , (. ., ). Linux 2.6.12 , RLIMIT_NICE; getrlimit(2). On success, the new nice value is returned (but see NOTES below). On error, -1 is returned, and errno is set to indicate the error. -1. errno 0 , nice() -1. EPERM , inc, . Linux CAP_SYS_NICE ( RLIMIT_NICE setrlimit(2)). C POSIX.1 , nice() . , Linux 0. nice() glibc 2.2.3 . glibc 2.2.4, nice() glibc, POSIX.1, getpriority(2) , . POSIX.1-2008. POSIX.1-2001, SVr4, 4.3BSD. sched(7). : <> Linux 2.6.38 , . sched(7). . nice(1), renice(1), fork(2), getpriority(2), getrlimit(2), setpriority(2), capabilities(7), sched(7) Alex Nik , Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . nice(2)