nice(2) DG/UX 4.30 nice(2)
NAME
nice - Change priority of a process.
SYNOPSIS
int nice (value)
int value;
PARAMETERS
value A positive or negative value that is to be
added to the calling process's priority.
DESCRIPTION
The value of value is added to the priority of the calling
process. A more positive priority value results in a lower
level of service from the CPU.
If the new priority would be greater than 19, the process's
priority is set to 19. If the new priority would be less
than -20, the process's priority is set to -20.
ACCESS CONTROL
The effective-user-id of the calling process must be 0
(super-user) for nice to accept a value for value that is
less than 0 or greater than 39. If this condition is not
met, value will be treated as 0, and errno will be set to
EPERM.
RETURN VALUE
Nice always returns the calling process's priority upon
completion of the system call. If an error occurred on the
call, the process's priority will be unchanged and errno
will be set to indicate the error. Errno should be set to
zero before the call and checked afterwards, regardless of
the return value.
EXCEPTIONS
EPERM The value of value is negative or greater
than 39 and the effective-user-id of the
calling process is not 0.
SEE ALSO
exec(2).
Licensed material--property of copyright holder(s) Page 1