35 |
|
* <p>Except for the lack of support for specified fairness policies, |
36 |
|
* or {@link Condition} objects, a SequenceLock can be used in the |
37 |
|
* same way as {@link ReentrantLock}. It provides similar status and |
38 |
< |
* monitoring methods such as {@link #isHeldByCurrentThread}. |
38 |
> |
* monitoring methods, such as {@link #isHeldByCurrentThread}. |
39 |
|
* SequenceLocks may be preferable in contexts in which multiple |
40 |
|
* threads invoke short read-only methods much more frequently than |
41 |
|
* fully locked methods. |