Javatpoint Logo
Javatpoint Logo

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.

Syntax

Parameter

NA

Returns

The number of queued tasks

Throws

Does not throw the exception.

Example 1

Test it Now

Output:

numbers of core available in your processor:4
  is Quiescent :true
 queued task count :0
Pool.invoke :161

Example 2

Test it Now

Output:

numbers of core available in your processor:4
 queued task count :0
Next TopicJava Forkjoinpool




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials