Internals of MySQL Locking Mechanisms and Row-Level Lock Algorithms
MySQL Lock Granularity and Types
In MySQL, locking mechanisms are categorized by their scope into three primary types: global locks, table-level locks, and row-level locks.
Global Locking
Applying a global lock places the entire database instance into a read-only state. This is historically used for logical full-database backups to ensure consi ...
Posted on Tue, 16 Jun 2026 17:05:27 +0000 by rusbb
Understanding MySQL Locking Mechanisms
Locks are essential for managing concurrent access to shared resources in databases. In MySQL, locks ensure data consistency and integrity when multiple transactions operate simultaneously. Based on granularity, MySQL supports three primary lock types: global, table-level, and row-level locks.
Global Locks
A global lock places the entire databa ...
Posted on Thu, 21 May 2026 19:41:57 +0000 by andrewgk
Java Thread Synchronization: From Intrinsic Locks to Concurrency Utilities
Thread synchronization coordinates concurrent access to shared resources, preventing race conditions and ensuring memory visibility. Java provides multiple coordination mechanisms ranging from low-level intrinsic monitors to high-level concurrency utilities.
Intrinsic Locking
Every Java object possesses an intrinsic lock (monitor). When a threa ...
Posted on Tue, 12 May 2026 18:30:17 +0000 by it2051229
MySQL Locking Mechanisms and Concurrency Control Strategies
Locks coordinate concurrent thread access to shared resources. In relational databases, they prevent data corruption during simultaneous reads and writes. MySQL delegates lock implementation to storage engines, resulting in distinct behaviors. MyISAM and MEMORY rely exclusively on table-level locking. InnoDB supports both table and row-level lo ...
Posted on Thu, 07 May 2026 08:39:32 +0000 by Zoxive