February 2014
Beginner
1248 pages
62h 25m
English
Programming concurrent applications is difficult and error prone. If you must use synchronization in a program, follow these guidelines:
1. The vast majority of programmers should use existing collection classes and interfaces from the concurrency APIs that manage synchronization for you—such as the ArrayBlockingQueue class (an implementation of interface BlockingQueue) we discuss in Section 23.6. Two other concurrency API classes that you’ll use frequently are LinkedBlockingQueue and ConcurrentHashMap (each summarized in Fig. 23.22). The concurrency API classes are written by experts, have been thoroughly tested and debugged, operate efficiently and help you avoid common traps ...
Read now
Unlock full access