diff options
Diffstat (limited to 'luni/src/main/java/java/util/concurrent/package-info.java')
-rw-r--r-- | luni/src/main/java/java/util/concurrent/package-info.java | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/luni/src/main/java/java/util/concurrent/package-info.java b/luni/src/main/java/java/util/concurrent/package-info.java index 51a29e8..afc8ca4 100644 --- a/luni/src/main/java/java/util/concurrent/package-info.java +++ b/luni/src/main/java/java/util/concurrent/package-info.java @@ -4,10 +4,6 @@ * http://creativecommons.org/publicdomain/zero/1.0/ */ -// BEGIN android-note -// omit links to ForkJoinPool, ForkJoinTask, LinkedTransferQueue, Phaser, TransferQueue -// END android-note - /** * Utility classes commonly useful in concurrent programming. This * package includes a few small standardized extensible frameworks, as @@ -67,11 +63,20 @@ * assists in coordinating the processing of groups of * asynchronous tasks. * + * <p>Class {@link java.util.concurrent.ForkJoinPool} provides an + * Executor primarily designed for processing instances of {@link + * java.util.concurrent.ForkJoinTask} and its subclasses. These + * classes employ a work-stealing scheduler that attains high + * throughput for tasks conforming to restrictions that often hold in + * computation-intensive parallel processing. + * * <h2>Queues</h2> * * The {@link java.util.concurrent.ConcurrentLinkedQueue} class - * supplies an efficient scalable thread-safe non-blocking FIFO - * queue. + * supplies an efficient scalable thread-safe non-blocking FIFO queue. + * The {@link java.util.concurrent.ConcurrentLinkedDeque} class is + * similar, but additionally supports the {@link java.util.Deque} + * interface. * * <p>Five implementations in {@code java.util.concurrent} support * the extended {@link java.util.concurrent.BlockingQueue} @@ -85,6 +90,12 @@ * for producer-consumer, messaging, parallel tasking, and * related concurrent designs. * + * <p>Extended interface {@link java.util.concurrent.TransferQueue}, + * and implementation {@link java.util.concurrent.LinkedTransferQueue} + * introduce a synchronous {@code transfer} method (along with related + * features) in which a producer may optionally block awaiting its + * consumer. + * * <p>The {@link java.util.concurrent.BlockingDeque} interface * extends {@code BlockingQueue} to support both FIFO and LIFO * (stack-based) operations. @@ -111,7 +122,7 @@ * * <h2>Synchronizers</h2> * - * Four classes aid common special-purpose synchronization idioms. + * Five classes aid common special-purpose synchronization idioms. * <ul> * * <li>{@link java.util.concurrent.Semaphore} is a classic concurrency tool. @@ -124,6 +135,10 @@ * multiway synchronization point useful in some styles of parallel * programming. * + * <li>A {@link java.util.concurrent.Phaser} provides + * a more flexible form of barrier that may be used to control phased + * computation among multiple threads. + * * <li>An {@link java.util.concurrent.Exchanger} allows two threads to * exchange objects at a rendezvous point, and is useful in several * pipeline designs. @@ -176,7 +191,7 @@ * * <h2 id="MemoryVisibility">Memory Consistency Properties</h2> * - * <a href="http://java.sun.com/docs/books/jls/third_edition/html/memory.html"> + * <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.4.5"> * Chapter 17 of the Java Language Specification</a> defines the * <i>happens-before</i> relation on memory operations such as reads and * writes of shared variables. The results of a write by one thread are @@ -243,7 +258,8 @@ * in each thread <i>happen-before</i> those subsequent to the * corresponding {@code exchange()} in another thread. * - * <li>Actions prior to calling {@code CyclicBarrier.await} + * <li>Actions prior to calling {@code CyclicBarrier.await} and + * {@code Phaser.awaitAdvance} (as well as its variants) * <i>happen-before</i> actions performed by the barrier action, and * actions performed by the barrier action <i>happen-before</i> actions * subsequent to a successful return from the corresponding {@code await} |