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. |
27 |
> |
<p> JSR166 introduces package <tt>java.util.concurrent</tt> containing |
28 |
> |
utility classes commonly useful in concurrent programming. Like |
29 |
> |
package java.util, it includes a few small standardized extensible |
30 |
> |
frameworks, as well as some classes that provide useful functionality |
31 |
> |
and are otherwise tedious or difficult to implement. JSR-166 focusses |
32 |
> |
on breadth, prviding critical functionality useful across a wide range |
33 |
> |
of concurrent programming styles and applications, ranging from |
34 |
> |
low-level atomic operations, to customizable locks and synchronization |
35 |
> |
aids, to various concurrent data structures, to thread pools. |
36 |
> |
Descriptions of the main components may be found in the associated |
37 |
> |
package documentation. |
38 |
|
|
39 |
|
<p> JSR166 also includes a few changes and additions in packages |
40 |
< |
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. |
40 |
> |
outside of java.util.concurrent. Here are brief descriptions. |
41 |
|
|
42 |
|
<h2>Queues</h2> |
43 |
|
|
56 |
|
to be used in most programs. Perhaps they will eventually be |
57 |
|
deprecated.) |
58 |
|
|
59 |
< |
<p> Additionally, java.lang.ThreadLocal now supports a means to remove |
60 |
< |
a ThreadLocal, which is needed in some thread-pool and worker-thread |
59 |
> |
<h2>High precision timing</h2> |
60 |
> |
|
61 |
> |
Method <tt>nanoTime</tt> is added to <tt>java.lang.System</tt>. It |
62 |
> |
provides a high-precision timing facility that is distinct from |
63 |
> |
and uncoordinated with <tt>System.currentTimeMillis</tt>. |
64 |
> |
|
65 |
> |
<h2>Removing ThreadLocals</h2> |
66 |
> |
|
67 |
> |
The java.lang.ThreadLocal class now supports a means to remove a |
68 |
> |
ThreadLocal, which is needed in some thread-pool and worker-thread |
69 |
|
designs. |
70 |
|
|
71 |
|
<hr> |