Home

This Chapter
-Chapter 15: Concurrency Updates
-BlockingDeque
-TimeUnit enum
-ConcurrentHashMap
-Summary

Table of Contents
-Introduction
-Chapter 1: Core Libraries
-Chapter 2: Dynamic Compilation
-Chapter 3: Scripting
-Chapter 4: Networking
-Chapter 5: Swing Updates
-Chapter 6: Abstract Window Toolkit
-Chapter 7: Internationalization
-Chapter 8: Java Database Connectivity 4.0
-Chapter 9: XML Digital Signature API
-Chapter 10: Streaming API for XML
-Chapter 11: Java Architecture for XML Binding
-Chapter 12: Web Services
-Chapter 13: JavaBeans Activation Framework
-Chapter 14: User-Defined MXBeans
-Chapter 15: Concurrency Updates
-Appendix A: Enums
-Appendix B: Generics
-Appendix C: Annotations

Previous
Next

 

Chapter 15

Concurrency Updates

The Concurrency Utilities, introduced with the release of Tiger, is comprised of the interfaces and classes in the java.util.concurrent package and its subpackages. It reduces programming effort and increases performance. More importantly, it spares you from having to deal with low-level concurrency primitives such as the wait, notify, and notifyAll methods in java.lang.Object as well as the synchronized and volatile keywords. These primitives are notorious for being difficult to use correctly.

The Concurrency Utilities includes concurrent implementations of several members of the Collections Framework. Mustang adds more to the stack by introducing, among others, the BlockingDeque interface. This interface is the focus of discussion in this chapter. In addition, this chapter covers the new methods in the TimeUnit enum and the new constructor in ConcurrentHashMap.

Previous
Next