Indy 9
TIdThreadPriority
See Also, Unit: IdGlobal
Indicates the scheduling priority for a thread.
TIdThreadPriority = TThreadPriority;
Unit
IdGlobal
Description
TIdThreadPriority is an enumerated type used when scheduling the priority of a thread relative to other processes on the local computer system. TIdThreadPriority is a platform-specific enumeration, and contains differing values for the Linux or Windows platforms.

On the Windows platform, TIdThreadPriority is defined as a TThreadPriority type, and represents the values for the Priority property of a thread component. Windows schedules CPU cycles to each thread based on a priority scale; the Priority property adjusts a thread's priority higher or lower on the scale.

For the Linux platform, TIdThreadPriority is defined as an enumeration. Values Meaning ------ ------- tpIdle The thread executes only when the system is idle. Windows won't interrupt other threads to execute a thread with tpIdle priority. tpLowest The thread's priority is two points below normal. tpLower The thread's priority is one point below normal. tpNormal The thread has normal priority. tpHigher The thread's priority is one point above normal. tpHighest The thread's priority is two points above normal. tpTimeCritical The thread gets highest priority.

Notes
Boosting the thread priority of a CPU intensive operation may adversely affect other threads in the application. Only apply priority boosts to threads that spend most of their time waiting for external events.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.