sendmail ThreadPriority property
Return to Introduction  Previous page  Next page
Applies to
SendMail component.  

Declaration
property ThreadPriority: TThreadPriority;  

Description
ThreadPriority 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 of SendMail thread, 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
iiwarning 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.  

See also
Thread and WaitThread properties.  
sIU/QH/K+!