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 the Difference Between an ArrayList and a LinkedList Data ...

What is Hash Collision in Java ?

What is Difference Between Include Directive and Include Action o ...

What is the Use of Run Time Polymorphism in Java ?

How Will You Pass Information From One JSP to Another JSP ?