Prenice
Section: Oct. 1, 1991
(2)
Updated: MiNT Programmer's Manual
Index
Return to Main Contents
NAME
Prenice - change process priority
SYNOPSIS
LONG Prenice( WORD pid, WORD delta );
DESCRIPTION
Prenice
changes the base process niceness for process
pid
by the amount
delta.
Higher levels of niceness correspond to decreased priority in scheduling,
so positive values for delta cause the corresponding process to be
scheduled less often. Conversely, negative values for delta cause the
process priority to be increased.
RETURNS
The current priority for the process, if successful. This is a 16 bit
signed quantity. The default priority is 0; higher priority processes have
larger priority values, lower priority ones have smaller values.
EFILNF if the indicated process does not exist (note that since this is
a 32 bit negative number it can be distinguished from the WORD negative
numbers returned for low priority processes)
EACCDN if the process has a different user id
SEE ALSO
Pnice(2)
BUGS
The scheduling algorithm is pretty weird, so it's hard to predict exactly
what effect process priorities have.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURNS
-
- SEE ALSO
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 16:01:23 GMT, March 03, 2023