Java.util.concurrent Synchronizers

From NovaOrdis Knowledge Base
Revision as of 01:15, 25 January 2016 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

Internal

CountDownLatch

External

Overview

A CountDownLatch is a synchronization tool that allows one or more threads to wait on it until a certain number of operations being performed in other threads completes. The latch is initialized with a count. Any thread calling await() blocks unit the count reaches zero, after which it is released. The count is decremented with countDown().



Semaphore