What are Java Synchronizers?

Java Synchronizers

Java Synchronizers are concurrency utilities that provides thread synchronization without using wait() and notify() methods. The main purpose all the synchronizers is to protect the critical section against concurrent access by multiple thread.

There are five types of Synchronizers present in Java :

  1. Semaphore

    • This synchronizer restrict the number of threads that can access a resource, it means only n threads can access a certain resource at a given time.
  2. Countdown Latch

    • CountDown Latch is a synchronizer that allow one or more number of threads to wait until one or more number of threads completed some operation.
  3. Cyclic Barrier

    • This synchronizer allow a set of threads to all wait for each other to reach a common barrier point.
  4. Phaser

  5. Exchanger

Java Professional with rich experience in Java development.
– Designing and developing high-volume, low-latency applications with high-availability and performance.
– Writing well designed, robust and efficient code.

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *

LinkedIn Auto Publish Powered By : XYZScripts.com