Java ForkJoinPool getStealCount() method
The getStealCount() method of ForkJoinPool class returns estimation of a number of tasks stolen from one thread by another after completing execution of all tasks in own queue. Steal count is high enough to keep thread busy but also it does not avoid overhead.
No parameter is passed.
This method returns the number of steals.
Example 1Test it Now
Steal Count :0
Example 2Test it Now
numbers of core available in your processor:2 Before Queued Submission :0 is awaitQuiescent :true Steal Count :0 Pool.invoke :161