Java forkJoinPool getQueuedTaskCount() Method
The 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.
The number of queued tasks
Does not throw the exception.
Example 1Test it Now
numbers of core available in your processor:4 is Quiescent :true queued task count :0 Pool.invoke :161
Example 2Test it Now
numbers of core available in your processor:4 queued task count :0