Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 859 Bytes

File metadata and controls

13 lines (10 loc) · 859 Bytes

Synchronizer

  • Synchronizers offer a high level ways of synchronizing the interactions between multiple threads.
  • The synchronizer classes defined by java.util.concurrent are
semaphore Implements the classic semaphore
CountDownLatch waits until a specified number of events have occurred
CyclicBarrier Enables a group of threads to wait at a predefined execution point.
Exchanger Exchanges data between two threads
Phaser synchronizes threads that advance through multiple phases of an operation