ThreadPriority property
|
SendMail component.
|
property ThreadPriority: TThreadPriority;
|
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.
|
|
Values | Meaning
|
tpIdle | The thread executes only when the system is idle. The system will not 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.
|
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.
|
Thread and WaitThread properties.
|