Your name or email adress:
Do you already have an account?
Forgot your password?
  • Log in or Sign up

    Results 1 to 2 of 2
    1. #1
      Join Date
      Dec 2014
      Location
      Bangalore
      Posts
      193
      MTV$
      255
      Thanks
      0
      Thanked 0 Times in 0 Posts

      What is difference between CyclicBarriar and Countdown Latch in Java ?

      Hello friends...................
      What is difference between CyclicBarriar and Countdown Latch in Java ?
      thanks in advanced..........

    2. # ADS
      Advertise here Circuit advertisement
      Join Date
      My Birthday
      Location
      Advertising world
      Posts
      Million and counting
       
    3. #2
      Join Date
      May 2014
      Location
      Inida
      Posts
      285
      MTV$
      380
      Thanks
      1
      Thanked 6 Times in 6 Posts

      Re: What is difference between CyclicBarriar and Countdown Latch in Java ?

      Both CyclicBarrier and CountDownLatch are used to implement a scenario where one Thread waits for one or more Thread to complete their job before starts processing. The differences are:

      1) CyclicBarrier is resulable, CountDownLatch is not.
      2) Both CyclicBarrier and CountDownLatch wait for fixed number of threads.
      3) CountDownLatch is advanceable but CyclicBarrier is not.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •