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 ReentrantReadWriteLock.WriteLock tryLock() method with example
  2. Java – AbstractQueuedLongSynchronizer Class
  3. Java ReentrantReadWriteLock.ReadLock tryLock() method with example
  4. Java AbstractQueuedSynchronizer owns() method with example
  5. Java AbstractQueuedSynchronizer toString() method with example
  6. Java AbstractQueuedSynchronizer isHeldExclusively() method with example
  7. Java AbstractQueuedLongSynchronizer acquireInterruptibly() method with example
  8. Java AbstractQueuedLongSynchronizer owns() method with example
  9. Java AbstractQueuedSynchronizer tryAcquireShared() method with example
  10. Java ReentrantReadWriteLock.WriteLock toString() method with example
  11. Java AbstractQueuedSynchronizer acquireShared() method with example
  12. Java ReentrantReadWriteLock getWaitQueueLength() method with example
  13. Java ReentrantReadWriteLock.ReadLock unlock() method with example
  14. Java StampedLock validate() method with example
  15. Java – ReadWriteLock Interface

Be the first to comment

Leave a Reply