Topic : The ATARI Compendium
Author : Scott Sanders / JAY Software
Version : 1.25 (20/6/2003)
Subject : Documentation
Nodes : 1117
Index Size : 32614
HCP-Version : 6
Compiled on : Atari
@charset : UTF-8
@lang : en
@default :
@help : %About
@options : +g -i -t4 +y +z
@width : 100
View Ref-FilePrenice()Pnice() GEMDOSSyntaxWORD Pnice( delta )
WORD delta;
Function Pnice() alters the process priority of the calling process.
Opcode 266 (0x10A)
Availability This function is available under all MiNTversions integrated with MultiTOS.
Parameters delta is a signed number which is added to the current
process priority value. Positive values decrease process
priority while negative values increase it.
Binding move.w delta,-(sp)
move.w #$10A,-(sp)
trap #1
addq.l #4,sp
Return Value Pnice() returns the prior process priority.
Comments The process priority value has no fixed formula so it is
hard to be able to predict the results of this call with any
accuracy. This call is the same as Prenice( Pgetpid(), delta
).
See Also Prenice()