Friday, July 20, 2018

What do you mean by CountDownLatch in java?

Problem statement:
  • Class CountDownLatch:
  1. java.util.concurrent
  2. java.util.concurrent.CountDownLatch extends java.lang.Object
  3. Since Java 1.5
  • Constructor Summary:
  1. CountDownLatch(int count)
Constructs a CountDownLatch initialized with the given count.
  • Method Summary:
  1. await(): void
  2. await(long timeout, TimeUnit unit): boolean
  3. countDown(): void
  4. getCount(): long
  5. toString(): String

No comments:

Post a Comment

Blueprint for self-improvement

To learn faster: Make the process fun To understand yourself : Write To understand the world better : Read To build deeper connection : Lis...