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 ReentrantLock getWaitingThreads() method with example
  3. Java AbstractQueuedSynchronizer tryReleaseShared() method with example
  4. Java ReentrantReadWriteLock.ReadLock tryLock() method with example
  5. Java – ReadWriteLock Interface
  6. Java – AbstractOwnableSynchronizer Class
  7. Java StampedLock readLockInterruptibly() method with example
  8. Java ReentrantReadWriteLock.WriteLock unlock() method with example
  9. Java AbstractQueuedSynchronizer tryAcquire() method with example
  10. Java AbstractQueuedSynchronizer acquireShared() method with example
  11. Java AbstractQueuedLongSynchronizer getSharedQueuedThreads() method with example
  12. Java AbstractQueuedLongSynchronizer tryRelease() method with example
  13. Java ReentrantReadWriteLock.ReadLock lockInterruptibly() method with example
  14. Java AbstractQueuedLongSynchronizer acquireInterruptibly() method with example
  15. Java Lock tryLock() method with example

Be the first to comment