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

What is Externalizable Interface in Java ?

What is the Difference Between DOM and SAX Parser in Java ?

How Does Web Module Work in Spring Framework ?

What is the Main Difference Between a Session and Cookie in JSP ?

What is the Difference Between Iterator and Enumeration in Java ?