Package java.util.concurrent.locks

Interface Summary
Condition sample code for java.util.concurrent.locks.Condition definition code for java.util.concurrent.locks.Condition Condition factors out the Object monitor methods (wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() and notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() ) into distinct objects to give the effect of having multiple wait-sets per object, by combining them with the use of arbitrary Lock sample code for java.util.concurrent.locks.Lock definition code for java.util.concurrent.locks.Lock implementations.
Lock sample code for java.util.concurrent.locks.Lock definition code for java.util.concurrent.locks.Lock Lock implementations provide more extensive locking operations than can be obtained using synchronized methods and statements.
ReadWriteLock sample code for java.util.concurrent.locks.ReadWriteLock definition code for java.util.concurrent.locks.ReadWriteLock A ReadWriteLock maintains a pair of associated locks sample code for java.util.concurrent.locks.Lock definition code for java.util.concurrent.locks.Lock , one for read-only operations and one for writing.
 

Class Summary
AbstractQueuedSynchronizer sample code for java.util.concurrent.locks.AbstractQueuedSynchronizer definition code for java.util.concurrent.locks.AbstractQueuedSynchronizer Provides a framework for implementing blocking locks and related synchronizers (semaphores, events, etc) that rely on first-in-first-out (FIFO) wait queues.
LockSupport sample code for java.util.concurrent.locks.LockSupport definition code for java.util.concurrent.locks.LockSupport Basic thread blocking primitives for creating locks and other synchronization classes.
ReentrantLock sample code for java.util.concurrent.locks.ReentrantLock definition code for java.util.concurrent.locks.ReentrantLock A reentrant mutual exclusion Lock sample code for java.util.concurrent.locks.Lock definition code for java.util.concurrent.locks.Lock with the same basic behavior and semantics as the implicit monitor lock accessed using synchronized methods and statements, but with extended capabilities.
ReentrantReadWriteLock sample code for java.util.concurrent.locks.ReentrantReadWriteLock definition code for java.util.concurrent.locks.ReentrantReadWriteLock An implementation of ReadWriteLock sample code for java.util.concurrent.locks.ReadWriteLock definition code for java.util.concurrent.locks.ReadWriteLock supporting similar semantics to ReentrantLock sample code for java.util.concurrent.locks.ReentrantLock definition code for java.util.concurrent.locks.ReentrantLock .
ReentrantReadWriteLock.ReadLock sample code for java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock definition code for java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock The lock returned by method ReentrantReadWriteLock.readLock() sample code for java.util.concurrent.locks.ReentrantReadWriteLock.readLock() definition code for java.util.concurrent.locks.ReentrantReadWriteLock.readLock() .
ReentrantReadWriteLock.WriteLock sample code for java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock definition code for java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock The lock returned by method ReentrantReadWriteLock.writeLock() sample code for java.util.concurrent.locks.ReentrantReadWriteLock.writeLock() definition code for java.util.concurrent.locks.ReentrantReadWriteLock.writeLock() .