Priority of A Thread (Thread Priority) :: 3 Constants Defiend in Thread Class
Priority of A Thread (Thread Priority) :: 3 Constants Defiend in Thread Class
Each thread have a priority. Priorities are represented by a number between 1 and
10. In most cases, thread schedular schedules the threads according to their priority
(known as preemptive scheduling). But it is not guaranteed because it depends on
JVM specification that which scheduling it chooses.