Locks in Java
`ReentrantLock`, `ReadWriteLock` and `StampedLock` offer timeouts, fairness and read/write separation.
Intermediate
Always unlock in finally.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.