24 |
their inclusion in a product. |
their inclusion in a product. |
25 |
</em> |
</em> |
26 |
|
|
27 |
<p> JSR166 introduces package <tt>java.util.concurrent</tt> containing utility |
<p> JSR166 introduces package <tt>java.util.concurrent</tt> containing |
28 |
classes commonly useful in concurrent programming. Like package |
utility classes commonly useful in concurrent programming. Like |
29 |
java.util, it includes a few small standardized extensible frameworks, |
package java.util, it includes a few small standardized extensible |
30 |
as well as some classes that provide useful functionality and are |
frameworks, as well as some classes that provide useful functionality |
31 |
otherwise tedious or difficult to implement. Descriptions of the main |
and are otherwise tedious or difficult to implement. JSR-166 focusses |
32 |
components may be found in the associated package documentation. |
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 |
<p> JSR166 also includes a few changes and additions in packages |
40 |
outside of java.util.concurrent: java.lang, to address uncaught |
outside of java.util.concurrent. Here are brief descriptions. |
|
exceptions, and java.util to better integrate with collections. Here |
|
|
are brief descriptions. |
|
41 |
|
|
42 |
<h2>Queues</h2> |
<h2>Queues</h2> |
43 |
|
|
56 |
to be used in most programs. Perhaps they will eventually be |
to be used in most programs. Perhaps they will eventually be |
57 |
deprecated.) |
deprecated.) |
58 |
|
|
59 |
<p> Additionally, java.lang.ThreadLocal now supports a means to remove |
<h2>High precision timing</h2> |
60 |
a ThreadLocal, which is needed in some thread-pool and worker-thread |
|
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. |
designs. |
70 |
|
|
71 |
<hr> |
<hr> |