java.util.concurrent.locks Package

java.util.concurrent.locks Package : Interfaces and classes providing a framework for locking and waiting for conditions that is distinct from built-in synchronization and monitors.

Interfaces in java.util.concurrent.locks Package

S.No Interface & Description
1 Condition

Condition factors out the Object monitor methods (wait, notify and notifyAll) into distinct objects to give the effect of having multiple wait-sets per object, by combining them with the use of arbitrary Lock implementations.
2 Lock

Lock implementations provide more extensive locking operations than can be obtained using synchronized methods and statements.
3 ReadWriteLock

A ReadWriteLock maintains a pair of associated locks, one for read-only operations and one for writing.

Classes in java.util.concurrent.locks Package

S.No Class & Description
1 AbstractOwnableSynchronizer

A synchronizer that may be exclusively owned by a thread.
2 AbstractQueuedLongSynchronizer

A version of AbstractQueuedSynchronizer in which synchronization state is maintained as a long.
3 AbstractQueuedSynchronizer

Provides a framework for implementing blocking locks and related synchronizers (semaphores, events, etc) that rely on first-in-first-out (FIFO) wait queues.
4 LockSupport

Basic thread blocking primitives for creating locks and other synchronization classes.
5 ReentrantLock

A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor lock accessed using synchronized methods and statements, but with extended capabilities.
6 ReentrantReadWriteLock

An implementation of ReadWriteLock supporting similar semantics to ReentrantLock.
7 ReentrantReadWriteLock.ReadLock

The lock returned by method ReentrantReadWriteLock.readLock().
8 ReentrantReadWriteLock.WriteLock

The lock returned by method ReentrantReadWriteLock.writeLock().
9 StampedLock

A capability-based lock with three modes for controlling read/write access.

Ask your questions in eHowToNow Forum

Post your technical, non-technical doubts, questions in our site. Get answer as soon as possible, meanwhile you can help others by answering, unanswered questions.
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers

  1. Java – ReentrantLock Class
  2. Java – AbstractOwnableSynchronizer Class
  3. java.util.concurrent.locks Package
  4. Java – AbstractQueuedSynchronizer Class
  5. Java – Lock Interface
  6. Java – LockSupport Class
  7. Java – StampedLock Class
  8. Java – ReentrantReadWriteLock.ReadLock Class
  9. Java – Condition Interface
  10. Java – ReadWriteLock Interface
  11. Java – ReentrantReadWriteLock Class
  12. Java – ReentrantReadWriteLock.WriteLock Class
  13. Java – AbstractQueuedLongSynchronizer Class

Be the first to comment

Leave a Reply