renice(2)
NAME
renice − set program priority
SYNTAX
int renice(pid, nice)
int pid, nice;
DESCRIPTION
The renice system call sets the scheduling priority of the process pid to nice.
RESTRICTIONS
The superuser may renice any process to any value from -127 to 127. Other users may only increase the nice value of one of their own processes.
RETURN VALUE
If unsuccessful, returns a −1, and the global variable errno indicates the error code.
DIAGNOSTICS
The renice call will fail if:
[EPERM] The named process’s effective user ID is not the same as the calling process, and the process’s effective user ID is not the superuser.
[ESRCH] The named process does not exist.
ASSEMBLER
(renice = 87.)
sys renice; pid; nice
(old nice value in r0)