Java ForkJoinPool hasQueuedSubmissions() MethodThe hasQueuedSubmissions() method returns true if there are any tasks submitted to this pool that have not yet begun executing otherwise false. SyntaxParameterNA ReturnsThis method returns a Boolean value true if there are any queued submissions. Example 1Test it NowOutput: Has Queued Submission: false Example 2Test it NowOutput: numbers of core available in your processor : 4 Before Queued Submission : false is awaitQuiescent : true After Queued Submission : false Pool.invoke : 161
Next TopicJava Forkjoinpool
|