|
The determination of when threads run is left up to the JVM implementation to allow maximum flexiblity for the various applications of Java. Threads are assigned priorties between 1 (lowest) to 10(highest). A thread can set its own thread up or down in priority. Three standard priority values are defined: MIN_PRIORITY
For example, ... For threads at the same priority, once one of them starts running, it continues until one of the following happens:
Preemptive or time-slicing context switching, available on some JVMs, also will move threads of same priority in and out of control.
|
||||||||||||
|
|||||||||||||