Tag

lightweight lock

0 views collected around this technical thread.

Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
Jan 15, 2020 · Fundamentals

Inside JVM: How synchronized Locks Work, From Biased to Heavyweight

This article explains the JVM's synchronized lock implementation, detailing where lock data is stored, the different lock states (no lock, biased, lightweight, heavyweight), the source code for lock acquisition and release, and the optimization strategies used to improve performance.

JVMJava concurrencyLock
0 likes · 10 min read
Inside JVM: How synchronized Locks Work, From Biased to Heavyweight