How to use CountDownLatch in Java with Example

Tutorials Shared by the Internet Community

Advertisements


Synopsis

CountDownLatch in Java is similar to CyclicBarrier and can be used in place of CyclicBarrier with only difference is that you can reuse CyclicBarrier

Statistics

  • Total Hits - 27018

  • Total Votes - 96 votes

  • Vote Up - 41 votes

  • Vote Down - 55 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/JAVA Misc

  • Submitted By - Javin Paul

  • Submitted on - 2012-12-24 15:35:47

Description

CountDownLatch in Java is similar to CyclicBarrier and can be used in place of CyclicBarrier with only difference is that you can reuse CyclicBarrier once Barrier is broker but you can not reuse CountDownLatch once count down to one. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements