NICE(2-SysV) RISC/os Reference Manual NICE(2-SysV)
NAME
nice - change priority of a process
SYNOPSIS
int nice (incr)
int incr;
DESCRIPTION
nice adds the value of incr to the nice value of the calling
process. A process's nice value is a non-negative number
for which a more positive value results in lower CPU prior-
ity.
A maximum nice value of ((2* NZERO )-1) and a minimum nice
value of 0 are imposed by the system. (The default nice
value is NZERO being set to the corresponding limit.
[EPERM] nice will fail and not change the nice
value if incr is negative or greater
than or equal to 2*NZERO and the effec-
tive user ID of the calling process is
not super-user.
SEE ALSO
exec(2).
nice(1) in the User's Reference Manual.
DIAGNOSTICS
Upon successful completion, nice returns the new nice value
minus NZERO. Otherwise, a value of -1 is returned and errno
is set to indicate the error.
Printed 1/15/91 Page 1