CountDownLatch is initialized with a
given count. This count is decremented by calls to the countDown() method. Threads waiting for
this count to reach zero can call one of the await() methods.
Calling await() blocks the thread until the count reaches zero.
No comments:
Post a Comment