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 AbstractQueuedSynchronizer isHeldExclusively() method with example
  2. Java LockSupport parkNanos() method with example
  3. Java AbstractQueuedSynchronizer tryRelease() method with example
  4. Java AbstractQueuedLongSynchronizer isHeldExclusively() method with example
  5. Java AbstractQueuedLongSynchronizer getWaitQueueLength() method with example
  6. Java AbstractQueuedSynchronizer acquireInterruptibly() method with example
  7. Java StampedLock readLockInterruptibly() method with example
  8. Java ReentrantReadWriteLock.WriteLock toString() method with example
  9. Java ReentrantReadWriteLock writeLock() method with example
  10. Java ReentrantReadWriteLock.WriteLock lock() method with example
  11. Java StampedLock unlockWrite() method with example
  12. Java – Lock Interface
  13. Java StampedLock toString() method with example
  14. Java AbstractQueuedLongSynchronizer isQueued() method with example
  15. Java – AbstractQueuedLongSynchronizer Class

Be the first to comment