Java Phaser isTerminated() MethodThe isTerminated() method is of Phaser class. This method returns true if phaser has been terminated. SyntaxReturnIt returns true if phaser is terminated. Otherwise, it returns false. Example 1Test it NowOutput: Phaser Object is register... Thread-0 arrived Thread-1 arrived Terminated: false Terminated: false Example 2Test it NowOutput: Phaser Object is register... Thread-0 arrived Terminated: false Thread-1 arrived Thread-2 arrived Thread-3 arrived Terminated: false Terminated: false Thread-4 arrived Terminated: false Terminated: false Thread-5 arrived Terminated: false 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