30 |
|
any function expressed as {@link java.util.concurrent.Callable}, the |
31 |
|
result-bearing analog of {@link java.lang.Runnable}. A {@link |
32 |
|
java.util.concurrent.Future} returns the results of a function, allows |
33 |
< |
determination if execution has completed, and provides a means to |
33 |
> |
determination of whether execution has completed, and provides a means to |
34 |
|
cancel execution. |
35 |
|
|
36 |
|
<p> |
37 |
|
|
38 |
< |
<b>Implementations.</b> The two primary Executor implementations are |
39 |
< |
tunable, flexible thread pool classes {@link |
38 |
> |
<b>Implementations.</b> Classes {@link |
39 |
|
java.util.concurrent.ThreadPoolExecutor} and {@link |
40 |
< |
java.util.concurrent.ScheduledThreadPoolExecutor}. The {@link |
41 |
< |
java.util.concurrent.Executors} class provides factory methods for the |
42 |
< |
most common kinds and configurations of Executors, as well as a few |
43 |
< |
utility methods for using them. Other utilities based on Executors |
44 |
< |
include the concrete class {@link java.util.concurrent.FutureTask} |
45 |
< |
providing a common extensible implementation of Futures, and {@link |
40 |
> |
java.util.concurrent.ScheduledThreadPoolExecutor} provide tunable, |
41 |
> |
flexible thread pools. The {@link java.util.concurrent.Executors} |
42 |
> |
class provides factory methods for the most common kinds and |
43 |
> |
configurations of Executors, as well as a few utility methods for |
44 |
> |
using them. Other utilities based on Executors include the concrete |
45 |
> |
class {@link java.util.concurrent.FutureTask} providing a common |
46 |
> |
extensible implementation of Futures, and {@link |
47 |
|
java.util.concurrent.ExecutorCompletionService}, that assists in |
48 |
|
coordinating the processing of groups of asynchronous tasks. |
49 |
|
|
81 |
|
|
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 |
84 |
> |
{@link java.util.concurrent.CountDownLatch} is a 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 useful in some styles of |