Java ForkJoinPool isShutdown() MethodThe isShutdown() method of ForkJoinPool class returns true if the pool calling isShutdown() has been shut down. SyntaxParameterNo parameter is passed. ReturnsTrue if this pool has been shut down ThrowsDoes not throw the exception. Example 1Test it NowOutput: numbers of core available in your processor:4 Before invoking number of active thread :0 is Shutdown :false Common Pool Size :3 Example 2Test it NowOutput: || Finder :0 || is Shutdown false || Active threads :2 Left 0 Right 0
Next TopicJava ForkJoinPool
|