Java Concurrent API Packages — Part 1
Concurrent utils are included in the package java.util.concurrent package.
This package has two important sub packages namely — java.util.concurrent.atomic and java.util.concurrent.locks. We will discuss about them in upcoming blogs.
As of now, we will discuss about java.util.concurrent package. This defines the core features, that helps us to provide alternative approach to the existing synchronization and Interthread process communication.
There are certain key features available in this package, which includes
- Synchronizers
- Executors
- Concurrent Collections
- The Fork / Join Framework.
We will discuss about each of them elaborately in my upcoming blogs. A basic idea about each feature will be discussed here
Synchronizers
This helps us to provide a high level of Synchronizing the Communication or Interactions between Multiple threads. This feature further provides different type of Synchronization techniques like
- Semaphore
- CountDownLatch
- CyclicBarrier
- Exchanger
- Phaser