Java Phaser getUnarrivedParties() MethodThe getUnarrivedParties() Method is of Phaser Class. It returns the number of registered parties that have not yet arrived at the current phase of this phaser. SyntaxReturnIt returns the number of unarrived parties. Example 1Test it NowOutput: Phasecount is 0 Thread-0 arrived Thread-1 arrived Thread-2 arrived Thread-3 arrived Unarrived Parties : 1 Thread-4 arrived Thread-5 arrived Phasecount is 0 Example 2Test it NowOutput: Phasecount is 0 Thread-0 arrived Unarrived Parties : 1 Thread-1 arrived Phasecount is 0 Next TopicJava Phaser |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India