Java ForkJoinPool isTerminated() Method
The isTerminated() method of ForkJoinPool class returns true if all the tasks in the pool have been shut down.
No parameter is passed.
True if all tasks have completed following shut down
Does not throw the exception.
Example 1Test it Now
numbers of core available in your processor:2 Before awaitTermination (is terminated):false is awaitQuiescent :true After awaitTermination (is terminated):false Pool.invoke :161
Example 2Test it Now
numbers of core available in your processor:4 is terminated :false