Java Concurrent API Packages — Part 1

Amar Balu
The Fresh Writes
Published in
3 min readFeb 7, 2023

--

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.

Image Source : https://javadeveloperzone.com/spring-boot/spring-boot-tutorial/

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

--

--

Amar Balu
The Fresh Writes

I'm a front-end developer. I love React and Redux, Java, and Data Science. I write code for fun!. Join our publication : https://medium.com/thefreshwrites