Problem Statement
One advantage of ReentrantLock over synchronized is:
Explanation
ReentrantLock provides advanced features: timed/interruptible acquisition, optional fairness, and separate Lock/Condition objects. Performance depends on the workload; it’s not universally faster.
Practice Sets
This question appears in the following practice sets: