Function GetPriority (Which,Who : Integer) : Integer;
GetPriority returns 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.
Error checking must be done on LinuxError, since a priority can be negative.
SetPriority, Nice, Getpriority (2)
For an example, see Nice.