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 StampedLock tryReadLock() method with example
  2. Java AbstractQueuedLongSynchronizer hasQueuedPredecessors() method with example
  3. Java ReentrantReadWriteLock hasWaiters() method with example
  4. Java – AbstractQueuedLongSynchronizer Class
  5. Java AbstractQueuedSynchronizer getExclusiveQueuedThreads() method with example
  6. Java AbstractQueuedSynchronizer tryAcquireShared() method with example
  7. Java AbstractQueuedSynchronizer acquireInterruptibly() method with example
  8. Java – Lock Interface
  9. Java AbstractQueuedLongSynchronizer getExclusiveQueuedThreads() method with example
  10. Java ReentrantReadWriteLock.WriteLock unlock() method with example
  11. Java ReentrantReadWriteLock.WriteLock toString() method with example
  12. Java LockSupport park() method with example
  13. Java ReentrantLock getWaitQueueLength() method with example
  14. Java Condition awaitNanos() method with example
  15. Java AbstractQueuedLongSynchronizer acquireShared() method with example

Be the first to comment

Leave a Reply