Tagged articles

Lock Upgrade

4 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Sep 8, 2026 · Backend Development

ReentrantLock vs synchronized: Source-Code Comparison & Selection Guide

This article provides a comprehensive source-code level comparison of Java's ReentrantLock and synchronized, covering their underlying implementations (JVM monitor vs AQS/CLH), lock upgrade mechanisms, fairness, interruptibility, timeout support, condition variables, and performance characteristics across JDK versions to guide practical selection.

AQSCLH queueJVM Internals
0 likes · 21 min read
ReentrantLock vs synchronized: Source-Code Comparison & Selection Guide
Programmer1970
Programmer1970
Nov 23, 2025 · Databases

MySQL Core Concepts Interview Q&A: 10 Essential Topics (Part 2)

This article provides detailed explanations of ten core MySQL topics—including InnoDB lock upgrades, redo log mechanics, MVCC version chains, tablespace types, page splitting, optimizer plan selection, crash recovery, binlog vs redo log, adaptive hash index, and memory management—along with practical tips for avoiding pitfalls and tuning performance.

Adaptive Hash IndexBinlogCrash Recovery
0 likes · 22 min read
MySQL Core Concepts Interview Q&A: 10 Essential Topics (Part 2)
Top Architect
Top Architect
May 11, 2021 · Fundamentals

Understanding Java Locks: From Synchronized to Lock Upgrade Mechanisms

This article explains how Java implements locks—from the basic use of the synchronized keyword and Lock interface to the internal object header structures, bias, lightweight, and heavyweight lock upgrades, and the role of CAS and monitor objects in JVM concurrency control.

JVMLock UpgradeLocks
0 likes · 18 min read
Understanding Java Locks: From Synchronized to Lock Upgrade Mechanisms