| 40 |
to determine if its execution has completed, or cancel it. |
to determine if its execution has completed, or cancel it. |
| 41 |
|
|
| 42 |
<p> The {@link java.util.concurrent.Executors} class provides factory |
<p> The {@link java.util.concurrent.Executors} class provides factory |
| 43 |
methods for the most common kinds and styles of Executors, as well as |
methods for the most common kinds and configurations of Executors, as |
| 44 |
a few utilities methods for using them. |
well as a few utility methods for using them. |
| 45 |
|
|
| 46 |
<h2>Queues</h2> |
<h2>Queues</h2> |
| 47 |
|
|
| 48 |
The java.util.concurrent {@link |
The java.util.concurrent {@link |
| 49 |
java.util.concurrent.ConcurrentLinkedQueue} class supplies an |
java.util.concurrent.ConcurrentLinkedQueue} class supplies an |
| 50 |
efficient sclable thread-safe non-blocking FIFO queue. |
efficient scalable thread-safe non-blocking FIFO queue. |
| 51 |
|
|
| 52 |
<p> Five implementations in java.util.concurrent support the extended |
<p> Five implementations in java.util.concurrent support the extended |
| 53 |
{@link java.util.concurrent.BlockingQueue} interface, that defines |
{@link java.util.concurrent.BlockingQueue} interface, that defines |
| 56 |
java.util.concurrent.ArrayBlockingQueue}, {@link |
java.util.concurrent.ArrayBlockingQueue}, {@link |
| 57 |
java.util.concurrent.SynchronousQueue}, {@link |
java.util.concurrent.SynchronousQueue}, {@link |
| 58 |
java.util.concurrent.PriorityBlockingQueue}, and {@link |
java.util.concurrent.PriorityBlockingQueue}, and {@link |
| 59 |
java.util.concurrent.DelayQueue}. |
java.util.concurrent.DelayQueue}. The different classes cover the most |
| 60 |
|
common usage contexts for producer-consumer, messaging, parallel |
| 61 |
|
tasking, and related concurrent designs. |
| 62 |
|
|
| 63 |
|
|
| 64 |
<h2>Timing</h2> |
<h2>Timing</h2> |
| 65 |
|
|
| 66 |
The {@link java.util.concurrent.TimeUnit} class provides multiple |
The {@link java.util.concurrent.TimeUnit} class provides multiple |
| 67 |
granularities (including nanoseconds) for both accessing time and |
granularities (including nanoseconds) for specifying and controlling |
| 68 |
performing time-out based operations. |
time-out based operations. Nearly all other classes in the package |
| 69 |
|
contain operations based on time-outs in addition to indefinite waits. |
| 70 |
|
|
| 71 |
<h2>Synchronizers</h2> |
<h2>Synchronizers</h2> |
| 72 |
|
|
| 116 |
|
|
| 117 |
<hr> |
<hr> |
| 118 |
<address><A HREF="http://gee.cs.oswego.edu/dl">Doug Lea</A></address> |
<address><A HREF="http://gee.cs.oswego.edu/dl">Doug Lea</A></address> |
| 119 |
<!-- hhmts start --> Last modified: Mon Jul 7 20:32:42 EDT 2003 <!-- hhmts end --> |
<!-- hhmts start --> Last modified: Tue Aug 5 20:39:44 EDT 2003 <!-- hhmts end --> |
| 120 |
</body> </html> |
</body> </html> |