Home » Java Basics » 06 - Threads and GUIs
6

High Level Concurrency Features

Concurrency features and data structures

The java.util.concurrent package offers several new concurrency features and data structures. Some concurrent data structures are also part of the Java Collections Framework. Lock objects contain methods like tryLock() and unlock() that allow developers to check if they have been locked by another process. Lock objects may be used to simplify concurrent applications and to avoid deadlock related problems. Executors allow developers to set up an environment for launching and managing threads in a large-scale environment. Concurrent collections and atomic variables make data management more efficient by reducing the need for synchronization