Javatpoint Logo
Javatpoint Logo

Java ForkJoinPool hasQueuedSubmissions() Method

The hasQueuedSubmissions() method returns true if there are any tasks submitted to this pool that have not yet begun executing otherwise false.

Syntax

Parameter

NA

Returns

This method returns a Boolean value true if there are any queued submissions.

Example 1

Test it Now

Output:

Has Queued Submission: false

Example 2

Test it Now

Output:

numbers of core available in your processor : 4
 Before Queued Submission : false
  is awaitQuiescent : true
 After Queued Submission : false
Pool.invoke : 161
Next TopicJava Forkjoinpool




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials