Object locking can be efficiently implemented by bimodal use of a field reserved in an object. The field is used as a lightweight lock in one mode, while it holds a reference to a heavyweight lock in the other mode. A bimodal locking algorithm recently proposed for Java achieves the highest performance in the absence of contention, and is still fast enough when contention occurs.
No takes yet. Share an insight, caveat, or question.
Onodera et al. (1999) studied this question.
Synapse has enriched 3 closely related papers on similar clinical questions. Consider them for comparative context: