Pnice

Section: Oct. 1, 1991 (2)
Updated: MiNT Programmer's Manual
Index Return to Main Contents
 

NAME

Pnice - change process priority for the current process  

SYNOPSIS

WORD Pnice( WORD delta );
 

DESCRIPTION

Pnice changes the base process niceness for the current process 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 (adjusted) process priority, as a 16 bit signed integer. 0 is the default priority; values greater than 0 are for higher priority processes (ones that are scheduled more often), and values less than 0 are lower priority processes.  

SEE ALSO

Prenice(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