Sign in Join
FPDoc Onlineexperiment

TProcess.Priority property

Member of TProcesspublishedIn unit Process

Priority at which the process is running.

Declaration

pascal
property Priority: TProcessPriority read FProcessPriority write FProcessPriority;

Description

Priority determines the priority at which the process is running.

PriorityMeaning
ppHigh The process runs at higher than normal priority.
ppIdle The process only runs when the system is idle (i.e. has nothing else to do)
ppNormal The process runs at normal priority.
ppRealTime The process runs at real-time priority.

Note that not all priorities can be set by any user. Usually, only users with administrative rights (the root user on Unix) can set a higher process priority.

On UNIX, the process priority is mapped on Nice values as follows:

PriorityNice value
ppHigh 20
ppIdle 20
ppNormal 0
ppRealTime -20

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.