Function SetPriority (Which,Who,Prio : Integer) : Integer;
SetPriority sets the priority with which a process is running. Which process(es) is determined by the Which and Who variables. Which can be one of the pre-defined Prio_Process, Prio_PGrp, Prio_User, in which case Who is the process ID, Process group ID or User ID, respectively.
Prio is a value in the range -20 to 20.
Error checking must be done on LinuxError, since a priority can be negative.
GetPriority, Nice, Setpriority (2)
For an example, see Nice.