next up previous contents index
Next: GetTime Up: Functions and procedures Previous: GetPPid

GetPriority

   

Declaration:

Function GetPriority (Which,Who : Integer) : Integer;

Description:

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.

Errors:

Error checking must be done on LinuxError, since a priority can be negative.

sys_esrch
No process found using which and who.
sys_einval
Which was not one of Prio_Process, Prio_Grp or Prio_User.

See also:

SetPriority, Nice, Getpriority (2)

For an example, see Nice.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998