November 2015
Intermediate to advanced
220 pages
4h 30m
English
CHAPTER 7
![]()
The Locking Framework
The java.util.concurrent.locks package provides a framework of interfaces and classes for locking and waiting for conditions in a manner that’s distinct from an object’s intrinsic lock-based synchronization and java.lang.Object’s wait/notification mechanism. The concurrency utilities include the Locking Framework that improves on intrinsic synchronization and wait/notification by offering lock polling, timed waits, and more.
SYNCHRONIZED AND LOW-LEVEL LOCKING
Java supports synchronization so that threads can safely update shared variables and ensure that a thread’s updates are visible to other threads. You leverage ...
Read now
Unlock full access