What is Thread Starvation in Java ?

In a priority based scheduling, Threads with lower priority get lesser time for execution than higher priority threads.

If a lower priority thread performs a long running computation, it may happen that this thread does not get enough time to finish its computations just in time. In such a scenario, the tread with lower priority would starve. It will remain away from the threads with higher priority.



You May Interest

Which Class Contains Clone Method in Java ?

What are the Situations in Which You Choose HashSet or TreeSet in ...

What is the Difference Between Throw and Throws in Java ?

What are the Java Collection Classes That Implement List Interfac ...

What are the Differences Between Comparable and Comparator in Jav ...