Method Thread():setPriority() Foundation
Sets the priority of a thread.
:setPriority( <nPriority> ) --> lSuccess
|PRIORITY_TIME_CRITICAL||Thread executes code as soon as it is Ready to Run|
|PRIORITY_IDLE||Thread executes code when no other thread is Ready to Run or executing code|
The method :setPriority() returns the value .T. (true) if the priority for the thread can be set, otherwise it returns .F. (false).
The method :setPriority() allows the priority of threads to be specified. The operating system distributes processor time to various threads according to their priority. Threads with high priority receive precedence when processor time is assigned and these threads are executed prior to threads having a lower priority.
By default, the threads in an Xbase++ program have the priority PRIORITY_NORMAL. An Xbase++ application is provided processor time along with other programs based on precedence. The priority does not normally need to be changed.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.