Javatpoint Logo
Javatpoint Logo

Java ForkJoinPool isShutdown() Method

The isShutdown() method of ForkJoinPool class returns true if the pool calling isShutdown() has been shut down.

Syntax

Parameter

No parameter is passed.

Returns

True if this pool has been shut down

Throws

Does not throw the exception.

Example 1

Test it Now

Output:

numbers of core available in your processor:4
 Before invoking number of active thread   :0
 is Shutdown  :false
Common Pool Size   :3

Example 2

Test it Now

Output:

|| Finder :0 || is Shutdown false || Active threads :2 Left  0 Right 0
Next TopicJava ForkJoinPool




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials