Tag

object header

0 views collected around this technical thread.

Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 2, 2021 · Backend Development

Deep Dive into Java synchronized: Usage, Lock Mechanisms, and JVM Implementation

This article explains the Java synchronized keyword, covering its basic usage on methods and code blocks, the underlying monitor mechanism, object header layout, lock states such as biased, lightweight, and heavyweight locks, and provides detailed code examples and JVM internal implementations.

Monitorconcurrencyjava
0 likes · 17 min read
Deep Dive into Java synchronized: Usage, Lock Mechanisms, and JVM Implementation
Top Architect
Top Architect
Oct 14, 2020 · Fundamentals

Deep Dive into Java synchronized: Object Header, Lock Types, and JVM Implementation

This article provides a comprehensive analysis of the HotSpot JVM implementation of the synchronized keyword, covering object header layout, the three lock states (biased, lightweight, heavyweight), their acquisition and release processes, bytecode differences, and practical code examples to help readers understand Java concurrency internals.

concurrencyjavajvm
0 likes · 16 min read
Deep Dive into Java synchronized: Object Header, Lock Types, and JVM Implementation