Javatpoint Logo
Javatpoint Logo

Java forkJoinPool getQueuedSubmissionCount() Method

The getQueuedSubmissionCount() method of ForkJoinPool class is used to get the number of tasks submitted to the pool but yet to be executed.

Syntax

Parameter

NA

Returns

The number of queued submissions

Throws

Does not throw the Exception.

Example 1

Test it Now

Output:

Queued Submission  :0

Example 2

Test it Now

Output:

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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA