Results 1 to 2 of 2

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

  1. #1
    Registered sulbha's Avatar
    Join Date
    Dec 2014
    Location
    Bangalore
    Posts
    340

    What is difference between CyclicBarriar and Countdown Latch in Java ?

    What is difference between CyclicBarriar and Countdown Latch in Java ?

  2. #2
    Registered
    Join Date
    Oct 2016
    Posts
    270
    Though I am not a Java expert (not even a Java programer), I am seeing that nobody has answered this question and hence I am going to make an attempt.

    Both are to do with multi-threads.

    Count Down latch is when one or more threads have to wait till some actions take place in OTHER threads and at that point, the threads are released. (e.g. when a group of friends are involved in managing an event and can decide on their own, the person assigned for invitations and the transport has to wait for the friend who has to fix the event hall.)

    Cyclic Barrier is similar to Count Down latch in the sense that the threads are made to wait but there is a chance of repetion. For example, the boss of the event management company, from the above example, may look at the expenses for hall, invitation and the transport and may ask them to repeat the exercise to optimize things.

    Java Experts may point ouf it I am right. Till then, use the answer at your own risk.
    Best Android Training | Devops Training | SQL Server Training and many more IT courses.

Similar Threads

  1. What is the difference between wait and sleep method in java ?
    By priya01 in forum Website Programming & Databases
    Replies: 9
    Last Post: 11-27-2018, 09:47 PM
  2. what is the difference between ppc and cpc
    By Nexevo Technologi in forum Search Engine Optimization
    Replies: 4
    Last Post: 04-21-2017, 03:54 AM
  3. What is the difference between CPA and CPC?
    By Shivangi Panwar in forum Search Engine Optimization
    Replies: 1
    Last Post: 06-20-2016, 03:45 AM
  4. What are the Difference between SMO and PPC
    By Nexevo Technologi in forum Search Engine Optimization
    Replies: 0
    Last Post: 12-01-2015, 05:10 AM
  5. What is the Difference between PPC and SMO
    By Nexevo Technologi in forum Search Engine Optimization
    Replies: 0
    Last Post: 09-30-2015, 08:12 AM

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
  •