Java Programming Part 51 Thread Priority

Java

Video is ready, Click Here to View ×


Threads always run with some priority, usually presented as a number between 1 and 10.
In most JVMs, however, the scheduler does use thread priorities in one important way: If a thread enters the runnable state, and it has a higher priority than any of
the threads in the pool and a higher priority than the currently running thread, the lower-priority running thread usually will be bumped back to runnable and the
highest-priority thread will be chosen to run.

Leave a Reply

Your email address will not be published. Required fields are marked *