7 |
|
package java.util.concurrent; |
8 |
|
|
9 |
|
/** |
10 |
< |
* A <tt>CyclicBarrier</tt> allows a set threads to all wait for each |
11 |
< |
* other to reach a common barrier point. They are useful in programs |
12 |
< |
* involving a fixed sized party of threads that must occasionally |
13 |
< |
* wait for each other. The barrier is <em>cyclic</em> because it can |
14 |
< |
* be re-used after the waiting threads are released. |
10 |
> |
* A synchronization aid that allows a set threads to all wait for |
11 |
> |
* each other to reach a common barrier point. CyckicBarriers are |
12 |
> |
* useful in programs involving a fixed sized party of threads that |
13 |
> |
* must occasionally wait for each other. The barrier is |
14 |
> |
* <em>cyclic</em> because it can be re-used after the waiting threads |
15 |
> |
* are released. |
16 |
|
* |
17 |
|
* <p>A <tt>CyclicBarrier</tt> supports an optional {@link Runnable} command |
18 |
|
* that is run once per barrier point, after the last thread in the party |