Sarang Shinde Sarang Shinde - 7 months ago 53
Java Question

Java Concurrent API Work-Stealing Algorithm

What is Java concurrent API's Work-Stealing algorithm?

How Java concurrent API's Work-Stealing algorithm for its task works internally by JVM?

Answer

What is Java concurrent API's Work-Stealing algorithm?

I think you are referring to the Fork / Join framework.

How Java concurrent API's Work-Stealing algorithm for its task works internally by JVM?

It is too much to ask someone to provide a full explanation in a answer. However, you can read the source-code of java.util.concurrent.ForkJoinPool to find out. Google for "ForkJoinPool source" to find it on the web.

(There is a long "Implementation Overview" comment near the start of the source file.)