Advanced COM Priority property
Priority read/write property

Sets/gets the thread priority.


object.Priority = numeric_expression
variable = object.Priority 


priority must be a number from -15 to +15. Where -15 is "idle" and +15 is "real-time"


Be careful with the "real-time" priority - it may cause other threads in the application to stop while the thread executes something.

The priority will have effect only if the work is done actually in this work. In most cases you will use COMApartment with the thread and the actual execution will occur in the apartment. So its priority should be changed instead of the COMThread's priority. 

Applies to: COMthread object

newObjects Copyright 2001-2006 newObjects [ ]