title: barrier with dynamic number of parties in java
body: <p>I want a barrier with a dynamic number of parties in java. I came across <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Phaser.html" rel="nofollow">Phaser</a>, but this solution is for java 7 which I unfortunately cannot use.</p>
  
  <p>Is there some solution for java 6. How should I satisfy the need for having a barrier with a variable number of waiters ?</p>