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-FilePnice()Prenice() GEMDOSSyntaxLONG Prenice( pid, delta )
WORD pid, delta;
Function Prenice() adjusts the process priority of the specified
process.
Opcode 295 (0x127)
Availability Available when a 'MiNT' cookie with a version of at least
0.90 exists.
Parameters The process priority for the process with process ID pid is
adjusted by signed value delta. Positive values for delta decrease process priority while negative values increase it.
Binding move.w delta,-(sp)
move.w pid,-(sp)
move.w #$127,-(sp)
trap #1
addq.l #6
Return Value Prenice() returns a 32-bit negative GEMDOS error code if
unsuccessful. Otherwise, the lower 16-bit signed value can
be interpreted as the previous process priority code.
Comments The exact effect adjusting process priorites will have is
difficult to determine.
See Also Pnice()