Java Phaser getArrivedParties() Method

The getArrivedParties() Method is of Phaser Class. It returns the number of parties which are registered that have arrived at the current phase of this phaser.

Syntax

Return

It returns the number of parties that are arrived.

Example 1

Test it Now

Output:

Phasecount is 0
Thread-0 arrived
Thread-1 arrived
Thread-2 arrived
Thread-3 arrived
Thread-4 arrived
Phasecount is 0
Arrived Parties:0

Next TopicJava Phaser




Latest Courses