Java forkJoinPool getQueuedSubmissionCount() MethodThe getQueuedSubmissionCount() method of ForkJoinPool class is used to get the number of tasks submitted to the pool but yet to be executed. SyntaxParameterNA ReturnsThe number of queued submissions ThrowsDoes not throw the Exception. Example 1Test it NowOutput: Queued Submission :0 Example 2Test it NowOutput: numbers of core available in your processor:4 Before Queued Submission :0 is awaitQuiescent :true After Queued Submission :0 Pool.invoke :161
Next TopicJava Forkjoinpool
|