thread Priority property
Return to Introduction  Previous page  Next page
Applies to
auThread component.  

Declaration
property Priority: TThreadPriority;  

Description
Priority indicates the priority used when scheduling the thread. Adjust the priority higher or lower as needed.  
 
TThreadPriority type defines the possible values for the Priority property of the auThread component, as defined in the following table. The system 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.  
 
ValuesMeaning  
tpIdleThe thread executes only when the system is idle. The system will not interrupt other threads to execute a thread with tpIdle priority.  
tpLowestThe thread's priority is two points below normal.  
tpLowerThe thread's priority is one point below normal.  
tpNormalThe thread has normal priority.  
tpHigherThe thread's priority is one point above normal.  
tpHighestThe thread's priority is two points above normal.  
tpTimeCriticalThe thread gets highest priority.  

Warning
Boosting the thread priority of a CPU intensive operation may "starve" the other threads in the application. Only apply priority boosts to threads that spend most of their time waiting for external events.  
File not found.