Thread Priority

Thread priority is guaranteed per processor; in other words, the priority of threads running on one processor has no effect on the priority of threads on other processors. This means that a lower priority thread could be run before a higher priority thread if the two threads are run on different processors. For example, in the illustration below, the thread running on Processor 7 has a lower priority than the first thread that is waiting in Processor 6's ready queue.

NOTE: Because thread priority is maintained on a per processor basis, you should not use thread priority to guarantee order of operations when they are executed on separate processors.

Related topics: