public Phaser (int parties)

Creates a new phaser with the given number of registered unarrived parties, no parent, and initial phase number 0.

Parameters:
parties    the number of parties required to advance to the next phase

Exceptions:
IllegalArgumentException    if parties less than zero or greater than the maximum number of parties supported