79 |
|
|
80 |
|
<h2>Synchronizers</h2> |
81 |
|
|
82 |
< |
Five classes aid common special-purpose synchronization idioms. |
82 |
> |
Four classes aid common special-purpose synchronization idioms. |
83 |
|
{@link java.util.concurrent.Semaphore} is a classic concurrency tool. |
84 |
|
{@link java.util.concurrent.CountDownLatch} is very simple yet very |
85 |
|
common utility for blocking until a given number of signals, events, |
86 |
|
or conditions hold. A {@link java.util.concurrent.CyclicBarrier} is a |
87 |
< |
resettable multiway synchronization point common in some styles of |
87 |
> |
resettable multiway synchronization point useful in some styles of |
88 |
|
parallel programming. An {@link java.util.concurrent.Exchanger} allows |
89 |
< |
two threads to exchange objects at a rendezvous point. |
89 |
> |
two threads to exchange objects at a rendezvous point, and is useful |
90 |
> |
in several pipeline designs. |
91 |
|
|
92 |
|
<h2>Concurrent Collections</h2> |
93 |
|
|