April 2017
Intermediate to advanced
594 pages
25h 15m
English
The StampedLock class provides a special kind of lock that is different from the ones provided by the Lock or ReadWriteLock interfaces. In fact, this class doesn't implement these interfaces, but the functionality it provides is very similar.
The first point to note about this kind of lock is that its main purpose is to be a helper class to implement thread-safe components, so its use will not be very common in normal applications.
The most important features of StampedLock locks are as follows:
Read now
Unlock full access