
Last chance! 50% off unlimited learning
Sale ends in
psnice(pid = Sys.getpid(), value = NA_integer_)
NA
for an enquiry.NA
if unknown for any reason.
+19
are only run when the system would otherwise be idle. On many OSes utilities such as top
report the priority and
not the niceness. Niceness is used by the utility
‘/usr/bin/renice’: ‘/usr/bin/nice’ (and
/usr/bin/renice -n
) specifies an increment in niceness.
Only privileged users (usually super-users) can lower the niceness.
Windows has a slightly different concept of ‘priority
classes’. We have mapped the idle priority to niceness 19
,
‘below normal’ to 15
, normal to 0
, ‘above
normal’ to -5
and ‘realtime’ to -10
. Unlike
Unix-alikes, a non-privileged user can increase the priority class on
Windows (but using ‘realtime’ is inadvisable).