.th NICE IV 3/6/86
.sh NAME
nice \*- set advisory program priority
.sh SYNOPSIS
(nice = 34.)
.br
(priority in r0)
.br
.ft B
sys nice
.s3
nice(priority)
.ft R
.sh DESCRIPTION
The scheduling
priority
of the process is changed to the argument.
Positive priorities get less
service than normal; 0 is default.
The valid range of
priority
is 20 to \*-220.
The value of 4 is recommended to users
who wish to execute long-running programs
without flak from the administration.
.s3
The effect of this call is
passed to a child process by the
fork
system call.
The effect can be cancelled by
another call to
nice
with a
priority
of 0.
.s3
The actual running priority of a
process is the
priority
argument plus a number that
ranges from 100 to 119 depending on the
cpu usage of the process.
.sh "SEE ALSO"
nice (I)
.sh DIAGNOSTICS
The error bit
(c-bit)
is set if the user requests a
priority
outside the range of 0 to 20
and is not the super-user.
.sh KSOS
This call is not yet implemented.
The description of priorities given above is not accurate for KSOS.
