Java forkJoinPool getQueuedTaskCount() MethodThe getQueuedTaskCount() method of ForkJoinPool class is used to get the estimation of the number of tasks in the working queue. This does not include tasks which are yet to be executed. SyntaxParameterNA ReturnsThe number of queued tasks ThrowsDoes not throw the exception. Example 1Test it NowOutput: numbers of core available in your processor:4 is Quiescent :true queued task count :0 Pool.invoke :161 Example 2Test it NowOutput: numbers of core available in your processor:4 queued task count :0
Next TopicJava Forkjoinpool
|