1 |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 |
<html> |
3 |
<head> |
4 |
<title>JSR 166 Snapshot Introduction.</title> |
5 |
</head> |
6 |
|
7 |
<body bgcolor="#ffffee" vlink="#0000aa" link="#cc0000"> |
8 |
<h1>JSR 166 Snapshot Introduction.</h1> |
9 |
|
10 |
by <a href="http://gee.cs.oswego.edu/dl">Doug Lea</a> |
11 |
<p> |
12 |
|
13 |
To join a mailing list discussing this JSR, go to: |
14 |
<A HREF="http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest"> http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest</A> . |
15 |
|
16 |
<p> |
17 |
<em> |
18 |
Disclaimer - This prototype is experimental code developed as part of |
19 |
JCP JSR166 and made available to the developer community for use |
20 |
as-is. It is not a supported product. Use it at your own risk. The |
21 |
specification, language and implementation are subject to change as a |
22 |
result of your feedback. Because these features have not yet been |
23 |
approved for addition to the Java language, there is no schedule for |
24 |
their inclusion in a product. |
25 |
</em> |
26 |
|
27 |
<p> JSR166 introduces package <tt>java.util.concurrent</tt> containing utility |
28 |
classes commonly useful in concurrent programming. Like package |
29 |
java.util, it includes a few small standardized extensible frameworks, |
30 |
as well as some classes that provide useful functionality and are |
31 |
otherwise tedious or difficult to implement. Descriptions of the main |
32 |
components may be found in the associated package documentation. |
33 |
|
34 |
<p> JSR166 also includes a few changes and additions in packages |
35 |
outside of java.util.concurrent: java.lang, to address uncaught |
36 |
exceptions, and java.util to better integrate with collections. Here |
37 |
are brief descriptions. |
38 |
|
39 |
<h2>Queues</h2> |
40 |
|
41 |
A basic (nonblocking) {@link java.util.Queue} interface extending |
42 |
java.util.Collection is introduced into java.util. Existing class |
43 |
java.util.LinkedList is adapted to support Queue, and a new |
44 |
non-thread-safe {@link java.util.PriorityQueue} is added. |
45 |
|
46 |
<h2>Uncaught Exception Handlers</h2> |
47 |
|
48 |
The java.lang.Thread class is modified to allow per-thread |
49 |
installation of handlers for uncaught exceptions. Ths optionally |
50 |
disassociates these handlers from ThreadGroups, which has proven to be |
51 |
too inflexible in many multithreaded programs. (Note that the |
52 |
combination of features in JSR166 make ThreadGroups even less likely |
53 |
to be used in most programs. Perhaps they will eventually be |
54 |
deprecated.) |
55 |
|
56 |
<p> Additionally, java.lang.ThreadLocal now supports a means to remove |
57 |
a ThreadLocal, which is needed in some thread-pool and worker-thread |
58 |
designs. |
59 |
|
60 |
<hr> |
61 |
<address><A HREF="http://gee.cs.oswego.edu/dl">Doug Lea</A></address> |
62 |
</body> |
63 |
</html> |