Tagged articles
208 articles
Page 2 of 3
政采云技术
政采云技术
Jul 28, 2022 · Databases

Analyzing and Resolving MySQL Next‑Key Lock Deadlocks: A Practical Case Study

This article walks through a real MySQL deadlock scenario, explaining the four necessary deadlock conditions, illustrating how Next‑Key locks on non‑unique indexes cause gap locks, and presenting step‑by‑step analysis, experimental verification, and practical recommendations to avoid such deadlocks in production systems.

Next-key LockSQLdatabase
0 likes · 15 min read
Analyzing and Resolving MySQL Next‑Key Lock Deadlocks: A Practical Case Study
Alibaba Terminal Technology
Alibaba Terminal Technology
May 12, 2022 · Frontend Development

How DingTalk Fixed FlutterEngine Crashes, Memory Leaks, and Deadlocks on Desktop

This article details the technical challenges DingTalk faced when integrating Flutter across macOS and Windows desktops, covering memory leaks, shutdown deadlocks, OpenGL crashes, rendering glitches, plugin registration wild‑pointer crashes, and white‑screen issues, and explains the root causes and concrete solutions applied to each problem.

CrashCross‑PlatformDesktop
0 likes · 12 min read
How DingTalk Fixed FlutterEngine Crashes, Memory Leaks, and Deadlocks on Desktop
IT Architects Alliance
IT Architects Alliance
Apr 29, 2022 · Fundamentals

Why Your Java Producer‑Consumer Code Deadlocks and How to Fix It

This article explains the root causes of thread‑safety problems in Java producer‑consumer scenarios, demonstrates how race conditions and deadlocks arise, and provides step‑by‑step solutions using synchronized blocks, wait/notify, notifyAll, and explicit Lock with Condition objects.

JavaLockProducer Consumer
0 likes · 20 min read
Why Your Java Producer‑Consumer Code Deadlocks and How to Fix It
Top Architect
Top Architect
Mar 11, 2022 · Fundamentals

Operating System Fundamentals: Concurrency, Process Management, Memory Management, and Deadlock

This article provides a comprehensive overview of operating system fundamentals, covering concepts such as concurrency, shared resources, virtual memory, process and thread management, synchronization mechanisms, classic synchronization problems, memory paging and replacement algorithms, device management, disk scheduling, and deadlock detection and prevention.

Operating SystemSchedulingSynchronization
0 likes · 33 min read
Operating System Fundamentals: Concurrency, Process Management, Memory Management, and Deadlock
DaTaobao Tech
DaTaobao Tech
Mar 7, 2022 · Databases

MySQL InnoDB Lock Types and Deadlock Analysis

The article explains MySQL InnoDB lock scopes and modes—including record, gap, next‑key and insert‑intention locks—illustrates a deadlock caused by concurrent inserts on a distributed lock table, and recommends limiting concurrency, sharding by business key, and splitting lock operations into smaller sub‑transactions to avoid such deadlocks.

InnoDBLockdatabase
0 likes · 16 min read
MySQL InnoDB Lock Types and Deadlock Analysis
Open Source Linux
Open Source Linux
Feb 15, 2022 · Fundamentals

Understanding Processes, Threads, Memory & File Management in Operating Systems

This article explains the differences between processes and threads, outlines process states, describes inter‑process communication methods, details memory allocation strategies and page‑replacement algorithms, covers file allocation techniques, disk I/O scheduling, and outlines deadlock conditions and prevention methods.

File SystemsMemory ManagementThreads
0 likes · 20 min read
Understanding Processes, Threads, Memory & File Management in Operating Systems
Programmer DD
Programmer DD
Jan 24, 2022 · Backend Development

How to Detect and Fix JVM CPU Spikes, Deadlocks, and Memory Leaks

Learn practical JVM tuning techniques by identifying high CPU usage, diagnosing deadlocks, and uncovering memory leaks using tools such as top, jstack, jps, jstat, and jmap, with step‑by‑step commands and code examples to help you optimize Java application performance.

CPUJVMJava
0 likes · 15 min read
How to Detect and Fix JVM CPU Spikes, Deadlocks, and Memory Leaks
Top Architect
Top Architect
Oct 27, 2021 · Databases

Understanding MySQL InnoDB Deadlocks: Types, Causes, and Prevention Strategies

This article explains MySQL InnoDB lock types, analyzes common deadlock scenarios with detailed SQL examples, describes the underlying locking mechanisms such as next‑key and gap locks, and provides practical prevention and resolution techniques for developers working with transactional databases.

InnoDBSQLconcurrency
0 likes · 13 min read
Understanding MySQL InnoDB Deadlocks: Types, Causes, and Prevention Strategies
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 22, 2021 · Fundamentals

Understanding and Solving Deadlocks in Java: Demonstrations, Causes, Detection Tools, and Solutions

This article explains Java deadlocks with synchronized and Lock examples, outlines the four necessary conditions, introduces detection tools such as jstack, jconsole, jvisualvm and jmc, and presents practical solutions including sequential locking and polling lock techniques with optimizations to avoid loops and starvation.

DebuggingLockSynchronization
0 likes · 27 min read
Understanding and Solving Deadlocks in Java: Demonstrations, Causes, Detection Tools, and Solutions
Kuaishou Tech
Kuaishou Tech
Sep 10, 2021 · Mobile Development

Analyzing and Resolving a Main Thread ↔ JavaScriptCore Heap Collector Thread Deadlock on iOS 13

This article investigates a deadlock between the Main Thread and the JavaScriptCore Heap Collector Thread on iOS 13, explains the underlying mutex and RunLoop interactions, reproduces the issue with CFTimer‑based timers, and proposes an AutoReleasePool‑wrapped solution along with best‑practice recommendations for JavaScriptCore usage.

Memory ManagementRunLoopdeadlock
0 likes · 17 min read
Analyzing and Resolving a Main Thread ↔ JavaScriptCore Heap Collector Thread Deadlock on iOS 13
JavaEdge
JavaEdge
Sep 10, 2021 · Databases

MySQL Lock Types Explained: Row, Gap, Metadata and Deadlock Prevention

This article examines MySQL’s locking mechanisms—including shared and exclusive row locks, gap and next‑key locks, table‑level and metadata locks—detailing how different SQL statements and index types affect lock acquisition, illustrating lock behavior with examples, and offering practical strategies to avoid deadlocks.

InnoDBLocksdeadlock
0 likes · 15 min read
MySQL Lock Types Explained: Row, Gap, Metadata and Deadlock Prevention
Kuaishou Frontend Engineering
Kuaishou Frontend Engineering
Sep 10, 2021 · Mobile Development

Main Thread vs JavaScriptCore: iOS 13 Deadlock Explained & Fixed

An in‑depth analysis reveals how a Main Thread and JavaScriptCore Heap Collector Thread can deadlock on iOS 13 due to RunLoop lock contention triggered by timer callbacks and AutoReleasePool memory reclamation, and provides a practical solution using scoped AutoReleasePool blocks to prevent the issue.

MobileRunLoopdeadlock
0 likes · 18 min read
Main Thread vs JavaScriptCore: iOS 13 Deadlock Explained & Fixed
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 13, 2021 · Databases

Analyzing and Resolving MySQL Global Read‑Lock Deadlocks in Parallel Replication

The article investigates a MySQL 8.0.18 replication deadlock caused by numerous set global read_only commands, explains the lock‑waiting chain involving global read and commit locks, reproduces two deadlock scenarios, and proposes practical solutions such as killing offending sessions or disabling slave_preserve_commit_order.

deadlockglobal read lockperformance_schema
0 likes · 14 min read
Analyzing and Resolving MySQL Global Read‑Lock Deadlocks in Parallel Replication
dbaplus Community
dbaplus Community
Jul 6, 2021 · Databases

Why Do MySQL Transactions Deadlock and How Can You Prevent It?

This article explains the root causes of MySQL deadlocks in InnoDB, walks through transaction and lock fundamentals, analyzes real‑world log cases, and presents practical solutions such as adjusting isolation levels, using SELECT FOR UPDATE, adding unique indexes, or checking existence before deletion to eliminate deadlocks.

InnoDBLockdatabase
0 likes · 12 min read
Why Do MySQL Transactions Deadlock and How Can You Prevent It?
Tech Musings
Tech Musings
May 14, 2021 · Databases

How to Diagnose and Fix MySQL Deadlocks Using Locks and Indexes

This article explains why MySQL deadlocks occur in a test module, details table and row lock mechanisms, reproduces the deadlock scenario with two sessions, analyzes lock logs, and provides a solution by adding a composite index to prevent the conflict.

InnoDBLockSQL
0 likes · 19 min read
How to Diagnose and Fix MySQL Deadlocks Using Locks and Indexes
dbaplus Community
dbaplus Community
May 9, 2021 · Databases

Why MySQL Index Merge Triggers Deadlocks and How to Fix Them

This article examines a real‑world MySQL deadlock caused by the Index Merge optimizer, explains InnoDB's lock‑on‑index mechanism, walks through the deadlock logs, and presents four practical solutions including force‑index hints, disabling Index Merge, creating a composite index, and a two‑step update approach.

InnoDBdeadlockindex merge
0 likes · 15 min read
Why MySQL Index Merge Triggers Deadlocks and How to Fix Them
Architecture Digest
Architecture Digest
Apr 25, 2021 · Databases

MySQL Lock Types and Deadlock Analysis

This article explains MySQL's lock granularity (table, row, page), the different lock modes such as next‑key, gap and record locks, illustrates common deadlock scenarios with detailed SQL examples, and discusses InnoDB's deadlock prevention strategies and best‑practice solutions.

InnoDBLockSQL
0 likes · 14 min read
MySQL Lock Types and Deadlock Analysis
Liangxu Linux
Liangxu Linux
Apr 24, 2021 · Databases

Understanding MySQL Lock Types and How to Prevent Deadlocks

This article explains MySQL's table, row, and page lock levels, describes next‑key, gap, and record locks, illustrates common deadlock scenarios with detailed SQL examples, and outlines InnoDB's lock acquisition and deadlock‑prevention strategies to help developers avoid concurrency issues.

InnoDBLock Typesconcurrency
0 likes · 14 min read
Understanding MySQL Lock Types and How to Prevent Deadlocks
Intelligent Backend & Architecture
Intelligent Backend & Architecture
Apr 7, 2021 · Fundamentals

Unlocking Java Concurrency: Master Threads, Locks, and Thread Pools

This comprehensive guide explains why concurrency is essential for modern systems, introduces core metrics like response time and throughput, outlines the three pillars of thread safety, compares concurrency with parallelism, and provides practical solutions for deadlocks, thread creation, synchronization, and efficient thread‑pool usage in Java.

JavaSynchronizationThreadPool
0 likes · 87 min read
Unlocking Java Concurrency: Master Threads, Locks, and Thread Pools
Java Backend Technology
Java Backend Technology
Apr 4, 2021 · Databases

Mastering MySQL Lock Types and Deadlock Prevention

This article explains MySQL's three lock levels, the algorithms behind next‑key, gap, and record locks, illustrates common deadlock scenarios with real SQL examples, and outlines InnoDB's lock‑prevention strategies to help developers avoid and resolve deadlocks.

InnoDBLockdatabase
0 likes · 15 min read
Mastering MySQL Lock Types and Deadlock Prevention
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Mar 29, 2021 · Databases

Implementing Distributed Read‑Write Locks with MySQL

This article explains how to build a distributed read‑write lock using MySQL tables and transactions, covering the business scenario, lock table design, detailed SQL procedures for write and read operations, logging, dead‑lock handling, and a cleanup job.

DatabaseConcurrencyDistributedLockLockTable
0 likes · 13 min read
Implementing Distributed Read‑Write Locks with MySQL
Selected Java Interview Questions
Selected Java Interview Questions
Mar 18, 2021 · Databases

MySQL Lock Types and Deadlock Analysis

This article explains MySQL's lock levels (table, page, row), the next‑key, gap, and record lock algorithms, illustrates common deadlock scenarios with detailed session examples, and discusses InnoDB's deadlock prevention strategies and practical solutions for avoiding lock conflicts.

InnoDBdatabasedeadlock
0 likes · 16 min read
MySQL Lock Types and Deadlock Analysis
360 Tech Engineering
360 Tech Engineering
Mar 12, 2021 · Databases

Comprehensive Overview of the InnoDB Lock System in MySQL

This article provides a detailed explanation of MySQL InnoDB's lock system, covering lock granularity, shared and exclusive locks, intention and auto‑increment locks, various row‑lock types, deadlock scenarios with examples, and the internal representation of locks in the engine.

InnoDBLocksdatabase
0 likes · 22 min read
Comprehensive Overview of the InnoDB Lock System in MySQL
ITPUB
ITPUB
Jan 28, 2021 · Databases

Why MySQL Index Merge Triggers Deadlocks and How to Fix It

This article explains how MySQL's index‑merge optimization can cause row‑level deadlocks during inventory updates, analyzes the lock sequence and deadlock logs, and presents practical solutions such as forcing a specific index, disabling index‑merge, and creating a composite index.

InnoDBdeadlockindex merge
0 likes · 15 min read
Why MySQL Index Merge Triggers Deadlocks and How to Fix It
Alibaba Cloud Developer
Alibaba Cloud Developer
Jan 22, 2021 · Databases

Why Do MySQL Deadlocks Occur and How to Prevent Them?

This article examines the root causes of MySQL deadlocks in online services, explains transaction and lock mechanisms such as UndoLog and RedoLog, analyzes real‑world cases, and presents practical strategies—including isolation level adjustments and pre‑delete checks—to avoid and resolve deadlock issues.

InnoDBLockdatabase
0 likes · 11 min read
Why Do MySQL Deadlocks Occur and How to Prevent Them?
vivo Internet Technology
vivo Internet Technology
Jan 20, 2021 · Databases

MySQL Deadlock Investigation Record

The article documents a MySQL 5.6.35 deadlock occurring during inventory deduction, explains how Index Merge caused inconsistent lock ordering across multiple indexes, and offers solutions such as forcing specific indexes, disabling Index Merge, adding composite indexes, or restructuring the SQL to prevent the deadlock.

databasedeadlockindexing
0 likes · 13 min read
MySQL Deadlock Investigation Record
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 11, 2021 · Databases

Analysis and Resolution of MySQL Slave Replication Deadlock Caused by Global Read Lock

The article investigates a MySQL replication issue where a continuously rising master‑slave lag was traced to a global read lock held by mysqldump, leading to a deadlock between the SQL thread and the stop‑slave operation, and explains how killing the lock‑waiting thread restores normal replication.

deadlockmysqldumpperformance_schema
0 likes · 8 min read
Analysis and Resolution of MySQL Slave Replication Deadlock Caused by Global Read Lock
Beike Product & Technology
Beike Product & Technology
Jan 6, 2021 · Databases

Analyzing MySQL Deadlock Cases and Prevention Strategies

This article investigates a MySQL InnoDB deadlock observed during a holiday period, explains how gap locks and next‑key locks on a composite index cause mutual waiting, reproduces the issue with large test data, and offers practical guidelines to avoid similar deadlocks in production environments.

Gap LockInnoDBdeadlock
0 likes · 12 min read
Analyzing MySQL Deadlock Cases and Prevention Strategies
Laravel Tech Community
Laravel Tech Community
Nov 15, 2020 · Databases

MySQL Lock Types and Deadlock Causes with Practical Examples

This article explains MySQL's three lock levels—table, row, and page—describes next‑key, gap, and record locks, analyzes why deadlocks occur, and provides multiple real‑world examples and prevention strategies, including code snippets for reproducible scenarios.

InnoDBLocksSQL
0 likes · 12 min read
MySQL Lock Types and Deadlock Causes with Practical Examples
Laravel Tech Community
Laravel Tech Community
Oct 25, 2020 · Databases

MySQL Lock Types and Deadlock Causes with Practical Examples

This article explains MySQL lock types—table, row, and page locks—their algorithms, common causes of deadlocks, and provides multiple practical examples with SQL statements and diagrams, followed by InnoDB lock‑prevention strategies and detailed analysis of concurrent delete scenarios.

InnoDBLocksdatabase
0 likes · 13 min read
MySQL Lock Types and Deadlock Causes with Practical Examples
ITPUB
ITPUB
Oct 9, 2020 · Databases

Understanding MySQL Lock Types and How to Resolve Common Deadlocks

This article explains MySQL's table, row, and page lock levels, the mechanics of next‑key locks, common deadlock scenarios with practical examples, and offers concrete SQL techniques and InnoDB strategies to prevent and troubleshoot deadlocks.

InnoDBLockdatabase
0 likes · 14 min read
Understanding MySQL Lock Types and How to Resolve Common Deadlocks
Youzan Coder
Youzan Coder
Sep 23, 2020 · Backend Development

Why Did My Dubbo Thread Pool Deadlock? A Deep Dive into CompletableFuture Blocking

The article analyzes a production incident where a Dubbo thread pool exhausted its threads due to CompletableFuture#join blocking, explains how the custom business thread pool caused mutual waiting, and presents a solution that isolates asynchronous tasks into a separate pool to restore service stability.

BackendCompletableFutureDubbo
0 likes · 9 min read
Why Did My Dubbo Thread Pool Deadlock? A Deep Dive into CompletableFuture Blocking
Selected Java Interview Questions
Selected Java Interview Questions
Sep 16, 2020 · Databases

In‑Depth Analysis of MySQL/InnoDB Locking Mechanisms

This article provides a comprehensive examination of MySQL/InnoDB locking, covering MVCC, snapshot vs. current reads, cluster indexes, two‑phase locking, isolation levels, detailed lock‑behaviour for various index and isolation combinations, complex query lock analysis, and deadlock detection techniques.

InnoDBIsolation LevelsMVCC
0 likes · 23 min read
In‑Depth Analysis of MySQL/InnoDB Locking Mechanisms
JavaEdge
JavaEdge
Jul 21, 2020 · Databases

Mastering MySQL Row Locks: Two‑Phase Locking, Deadlocks & Performance Tips

This article explains how MySQL implements row‑level locking, the two‑phase locking protocol, common deadlock scenarios with online ticket sales, and practical strategies—including lock ordering, deadlock detection settings and sharding tricks—to improve concurrency and reduce CPU overhead.

deadlockmysqlrow lock
0 likes · 9 min read
Mastering MySQL Row Locks: Two‑Phase Locking, Deadlocks & Performance Tips
Sohu Tech Products
Sohu Tech Products
Jul 8, 2020 · Fundamentals

Understanding Deadlocks: Causes, Conditions, Prevention, Detection, and Recovery

Deadlocks occur when multiple processes hold exclusive resources while waiting for each other, leading to indefinite blocking; this article explains deadlock concepts, resource types, the four necessary conditions, various detection and recovery methods, prevention strategies such as the banker’s algorithm, and related issues like livelocks and starvation.

Operating SystemsSynchronizationconcurrency
0 likes · 28 min read
Understanding Deadlocks: Causes, Conditions, Prevention, Detection, and Recovery
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 1, 2020 · Fundamentals

Understanding Deadlocks: Causes, Conditions, Prevention, Detection, and Recovery

This article explains what deadlocks are, the necessary conditions that cause them, how resources can be classified, various detection and avoidance techniques—including the banker’s algorithm and ostrich approach—and discusses related issues such as livelocks, starvation, and communication deadlocks.

banker's algorithmdeadlocklivelock
0 likes · 24 min read
Understanding Deadlocks: Causes, Conditions, Prevention, Detection, and Recovery
Sohu Tech Products
Sohu Tech Products
May 20, 2020 · Mobile Development

Understanding Deadlocks and Their Prevention in Android Development

This article explains the concept of deadlocks, illustrates classic scenarios such as the dining philosophers problem, shows common lock‑order and multi‑object deadlocks with Java code examples, and details Android's WatchDog mechanism and practical techniques for detecting and avoiding deadlocks in mobile applications.

JavaWatchdogconcurrency
0 likes · 21 min read
Understanding Deadlocks and Their Prevention in Android Development
MaGe Linux Operations
MaGe Linux Operations
Apr 7, 2020 · Databases

Understanding MySQL Locks: Types, Engines, and Deadlock Prevention

This article explains why MySQL requires locking, compares table and row lock types, details MyISAM and InnoDB lock mechanisms—including optimistic vs. pessimistic locks, lock algorithms, and deadlock handling—while providing practical SQL examples and prevention strategies.

Database LocksInnoDBMyISAM
0 likes · 16 min read
Understanding MySQL Locks: Types, Engines, and Deadlock Prevention
Java Backend Technology
Java Backend Technology
Mar 19, 2020 · Backend Development

Speed Up Java Debugging: One‑Click Tools to Pinpoint 100% CPU and Deadlocks

Backend developers often face sudden high CPU usage or thread deadlocks in production Java services, and this article introduces a set of one‑click scripts and practical examples that automate diagnosis, locate offending code lines instantly, and provide additional utilities for classpath conflicts, JVM monitoring, and runtime tracing.

CPUDebuggingdeadlock
0 likes · 13 min read
Speed Up Java Debugging: One‑Click Tools to Pinpoint 100% CPU and Deadlocks
FunTester
FunTester
Feb 18, 2020 · Backend Development

Why Java’s volatile Can’t Replace Synchronization: Understanding Memory Consistency and Deadlocks

This article explains Java memory‑consistency problems, demonstrates how stale values arise with unsynchronized threads, shows how volatile and synchronized provide happens‑before guarantees, and illustrates common synchronization pitfalls such as reference locks and deadlocks with concrete code examples.

JavaMemory ModelSynchronization
0 likes · 7 min read
Why Java’s volatile Can’t Replace Synchronization: Understanding Memory Consistency and Deadlocks
vivo Internet Technology
vivo Internet Technology
Jan 8, 2020 · Backend Development

Analysis and Fix of Tomcat 9.0.26 Deadlock Issue

Tomcat 9.0.26 suffers a high‑concurrency deadlock caused by a lock‑order inversion among NIO poller and executor threads, dropping TPS to zero and creating thousands of CLOSE_WAIT sockets; downgrading to Tomcat 8 or applying the 9.0.31+ patch that moves the close operation into a finally block restores performance to around 15 K TPS.

JavaTomcatdeadlock
0 likes · 6 min read
Analysis and Fix of Tomcat 9.0.26 Deadlock Issue
Test Development Learning Exchange
Test Development Learning Exchange
Dec 31, 2019 · Fundamentals

Multithreading Concepts: Locks, Deadlock, Recursive Locks, and Daemon Threads

This article explains multithreading fundamentals, covering thread concepts, lock mechanisms for database access, deadlock causes and solutions, recursive locks (RLock), data race issues, and daemon thread behavior. It also discusses connection pooling, timeout strategies to avoid deadlock, and practical code examples in Python.

Connection PoolingDaemon ThreadLocks
0 likes · 6 min read
Multithreading Concepts: Locks, Deadlock, Recursive Locks, and Daemon Threads
Big Data Technology & Architecture
Big Data Technology & Architecture
Dec 26, 2019 · Fundamentals

Java Thread Interview Questions and Answers with Code Examples

This article provides a comprehensive guide to common Java multithreading interview questions, covering thread ordering with join, lock vs synchronized, read‑write locks, wait vs sleep, blocking queues, producer‑consumer patterns, deadlock detection, thread dumps, thread states, and immutable objects, all illustrated with runnable code samples.

BlockingQueueJavaLock
0 likes · 33 min read
Java Thread Interview Questions and Answers with Code Examples
Programmer DD
Programmer DD
Nov 1, 2019 · Fundamentals

How to Break Java’s Deadlock: From Coffman Conditions to Practical Lock Strategies

This article explains why naive synchronized locks can cause deadlocks in Java, introduces the four Coffman conditions, and presents three practical solutions—acquiring all resources at once, using explicit locks with wait/notify, and ordering lock acquisition—to prevent deadlock in concurrent applications.

LocksSynchronizationcoffman-conditions
0 likes · 9 min read
How to Break Java’s Deadlock: From Coffman Conditions to Practical Lock Strategies
ITPUB
ITPUB
Oct 23, 2019 · Databases

Master MySQL Locks and Transactions: A Deep Dive into Concurrency Control

This article systematically explains MySQL's logical server architecture, the various lock types (shared, exclusive, intention, record, gap, next‑key, insert‑intention, AUTO‑INC), transaction fundamentals, isolation levels, MVCC mechanics, and practical deadlock detection and avoidance techniques, complete with real‑world SQL examples.

Isolation LevelsLocksMVCC
0 likes · 23 min read
Master MySQL Locks and Transactions: A Deep Dive into Concurrency Control
Didi Tech
Didi Tech
Sep 3, 2019 · Fundamentals

General Deadlock Prediction Algorithm for Linux Kernel Read‑Write Locks

The paper reverse‑engineers Linux’s Lockdep and introduces a universal deadlock prediction algorithm that treats mutexes as write‑locks of read‑write locks, using a two‑thread model and indirect‑dependency analysis to accurately detect potential deadlocks in complex rwlock scenarios.

Lockdepconcurrencydeadlock
0 likes · 18 min read
General Deadlock Prediction Algorithm for Linux Kernel Read‑Write Locks
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 16, 2019 · Databases

Analyzing MySQL InnoDB Deadlock with RC and RR Locks

This article demonstrates how to reproduce and analyze a MySQL InnoDB deadlock involving RC and RR lock modes by constructing a test table, enabling detailed lock logging, and walking through the transaction steps that lead to a circular lock wait, illustrated with logs and diagrams.

deadlocklockingtransaction
0 likes · 8 min read
Analyzing MySQL InnoDB Deadlock with RC and RR Locks
Programmer DD
Programmer DD
Jul 18, 2019 · Backend Development

How to Detect and Resolve Java Deadlocks and 100% CPU Issues: A Step‑by‑Step Guide

This article walks Java developers through diagnosing and fixing common problems such as deadlocks and CPU usage spikes, explaining the underlying concepts, showing practical code examples, and demonstrating how to use tools like jps, jstack, JConsole, JVisualVM, and Arthas to pinpoint and prevent performance bottlenecks.

ArthasCPUJVisualVM
0 likes · 10 min read
How to Detect and Resolve Java Deadlocks and 100% CPU Issues: A Step‑by‑Step Guide
dbaplus Community
dbaplus Community
Jul 7, 2019 · Databases

Master MySQL Locking: Table vs Row Locks, InnoDB Algorithms & Transaction Isolation

This article explains MySQL's locking mechanisms, comparing table‑level and row‑level locks, detailing InnoDB lock types such as shared, exclusive and intention locks, describing lock algorithms like record, gap, next‑key and insert‑intention locks, and covering lock‑related issues, transaction isolation levels, autocommit behavior, and group commit optimization.

Group CommitInnoDBIsolation Levels
0 likes · 43 min read
Master MySQL Locking: Table vs Row Locks, InnoDB Algorithms & Transaction Isolation
Efficient Ops
Efficient Ops
Jun 18, 2019 · Databases

How to Diagnose and Fix MySQL Slow Queries Caused by Deadlocks

This article walks through a real‑world case where a single MySQL statement took over 1000 ms, showing how to use Druid, JMC, and process‑list analysis to uncover deadlocks, add missing indexes, kill blocking threads, and restore normal performance.

database indexingdeadlockmysql
0 likes · 6 min read
How to Diagnose and Fix MySQL Slow Queries Caused by Deadlocks
ITPUB
ITPUB
Jun 17, 2019 · Databases

How I Fixed a 10‑Second MySQL Query Using Druid and JMC Monitoring

In a Docker‑based test environment, a Dubbo‑called RPC timed out due to a MySQL deadlock caused by missing indexes, and the issue was resolved by monitoring with Druid, remote JMC inspection, killing blocking threads, and adding proper indexes to the locked table.

DockerDruidJMC
0 likes · 7 min read
How I Fixed a 10‑Second MySQL Query Using Druid and JMC Monitoring
dbaplus Community
dbaplus Community
Mar 17, 2019 · Databases

Understanding InnoDB Locks: From Record Locks to Deadlocks

This article explains MySQL InnoDB’s transaction locking mechanisms—including shared, exclusive, intention, gap, and next‑key locks—covers lock compatibility, demonstrates lock behavior with practical examples, explores phantom reads, lost updates, optimistic vs. pessimistic locking, and analyzes common deadlock scenarios.

Gap LockInnoDBLocks
0 likes · 28 min read
Understanding InnoDB Locks: From Record Locks to Deadlocks
Java Captain
Java Captain
Mar 16, 2019 · Fundamentals

Java Multithreading: Concepts, Thread Creation, Synchronization, Thread Pools, and Deadlock Prevention

This article explains core Java multithreading concepts, covering the differences between parallel and concurrent execution, thread vs process, daemon threads, various ways to create threads, thread states, synchronization mechanisms, thread‑pool types, lock escalation, deadlock causes and prevention, as well as ThreadLocal and atomic utilities.

JavaThreadPooldeadlock
0 likes · 16 min read
Java Multithreading: Concepts, Thread Creation, Synchronization, Thread Pools, and Deadlock Prevention
Youzan Coder
Youzan Coder
Mar 8, 2019 · Databases

MySQL InnoDB Deadlock Case Study and Resolution

An InnoDB deadlock occurs when concurrent UPDATEs on a table with a composite (c,d) index generate conflicting GAP and Next‑Key locks during internal delete‑plus‑insert operations, and the simplest resolution is to drop column d from the index, leaving a single‑column index to prevent the lock clash.

InnoDBSQLdeadlock
0 likes · 10 min read
MySQL InnoDB Deadlock Case Study and Resolution
Youzan Coder
Youzan Coder
Mar 6, 2019 · Databases

Why Concurrent Inserts Trigger MySQL Deadlocks: An In‑Depth InnoDB Lock Analysis

This article examines a MySQL 5.6 InnoDB deadlock scenario caused by concurrent batch INSERTs, detailing the table schema, test cases, lock acquisition phases, log analysis, lock compatibility matrix, and discusses why typical SQL‑level fixes are limited, suggesting index redesign or data sharding as mitigation.

InnoDBSQLconcurrency
0 likes · 11 min read
Why Concurrent Inserts Trigger MySQL Deadlocks: An In‑Depth InnoDB Lock Analysis
Youzan Coder
Youzan Coder
Mar 1, 2019 · Databases

Why Do MySQL Inserts Cause Deadlocks? A Deep Dive into a Real-World Case

This article analyzes a MySQL deadlock scenario where concurrent inserts and unique‑key conflicts lead to circular lock waits, explains the underlying lock behavior, walks through the full deadlock log, and proposes using INSERT ON DUPLICATE KEY UPDATE to prevent the issue.

InnoDBdatabasedeadlock
0 likes · 7 min read
Why Do MySQL Inserts Cause Deadlocks? A Deep Dive into a Real-World Case
Youzan Coder
Youzan Coder
Feb 22, 2019 · Databases

MySQL Deadlock Case Study and Analysis

The article examines a MySQL 5.6 deadlock caused by concurrent sessions locking a row via a non‑unique index and the primary key in different orders, explains the circular wait illustrated in the log, and recommends updating rows using the primary key to enforce consistent lock ordering and prevent such deadlocks.

InnoDBdeadlocklocking
0 likes · 7 min read
MySQL Deadlock Case Study and Analysis
Youzan Coder
Youzan Coder
Feb 15, 2019 · Databases

Why Three Concurrent INSERTs Trigger a Deadlock in InnoDB?

This article walks through a step‑by‑step InnoDB deadlock case where three sessions inserting rows with the same unique key cause a lock‑compatibility conflict, explains the INSERT lock phases, shows the actual deadlock log, and reveals why the deadlock occurs.

InnoDBInsert Intention Lockdatabase
0 likes · 14 min read
Why Three Concurrent INSERTs Trigger a Deadlock in InnoDB?
Youzan Coder
Youzan Coder
Jan 30, 2019 · Operations

Why Do MySQL RR Transactions Deadlock? A Deep Dive into Index Locking

This article examines two MySQL deadlock scenarios under REPEATABLE READ isolation—one with a non‑unique index and another with a unique index—by presenting table definitions, test data, raw deadlock logs, and step‑by‑step analysis of lock acquisition and waiting, ultimately offering practical recommendations to avoid such deadlocks.

Database operationsInnoDBRR Isolation
0 likes · 12 min read
Why Do MySQL RR Transactions Deadlock? A Deep Dive into Index Locking
Youzan Coder
Youzan Coder
Jan 25, 2019 · Databases

MySQL/InnoDB Deadlock Analysis: Detection, Handling, and Prevention

The guide explains MySQL/InnoDB deadlocks—how circular lock waits arise, the wait‑for‑graph detection that rolls back the transaction with fewer undo logs, the various lock modes and their behavior in UPDATE/INSERT/DELETE, and practical strategies such as proper indexing, consistent access order, and configuration tweaks to detect, handle, and prevent deadlocks.

Concurrency ControlDatabase LocksDatabase Optimization
0 likes · 13 min read
MySQL/InnoDB Deadlock Analysis: Detection, Handling, and Prevention
360 Tech Engineering
360 Tech Engineering
Jul 4, 2018 · Backend Development

Understanding and Avoiding Common Concurrency Bugs in Java

This article introduces the four major categories of multithreaded bugs—data races, atomicity failures, ordering failures, and deadlocks—explains their causes with Java examples, and provides practical techniques such as using state machines, volatile variables, consistent lock ordering, and proper exception handling to prevent them.

Javadata racedeadlock
0 likes · 7 min read
Understanding and Avoiding Common Concurrency Bugs in Java
Tencent TDS Service
Tencent TDS Service
Mar 8, 2018 · Mobile Development

How to Detect and Analyze Android Thread Deadlocks with Automated Monitoring

This article describes the background of Android thread freeze issues caused by deadlocks, presents a client‑server monitoring architecture that captures thread and lock information via system traces, details automated analysis methods for deadlock detection and non‑deadlock causes, and shares the observed performance improvements and future plans.

Androiddeadlockthread monitoring
0 likes · 17 min read
How to Detect and Analyze Android Thread Deadlocks with Automated Monitoring
Architecture Digest
Architecture Digest
Jan 21, 2018 · Databases

Common MySQL Concurrency Issues: Table Locks, Metadata Locks, Deadlocks, and Lock Waits

This article examines typical MySQL concurrency problems—including table lock‑induced slow queries, metadata lock blocking during online schema changes, deadlock scenarios, and lock‑wait timeouts—provides step‑by‑step reproductions, analysis of lock behavior, and practical mitigation strategies such as using InnoDB, online DDL tools, and monitoring techniques.

InnoDBLocksOnlineDDL
0 likes · 15 min read
Common MySQL Concurrency Issues: Table Locks, Metadata Locks, Deadlocks, and Lock Waits
Beike Product & Technology
Beike Product & Technology
Dec 30, 2017 · Backend Development

Analysis and Solution of JVM Deadlock Problem

This article analyzes a JVM deadlock issue encountered in a Tomcat-based application, detailing the problem's cause, analysis using jstack, and the solution involving ClassLoader isolation and ParallelCapable registration.

JVMJavaTomcat
0 likes · 15 min read
Analysis and Solution of JVM Deadlock Problem
Qunar Tech Salon
Qunar Tech Salon
Dec 20, 2017 · Databases

Diagnosing and Resolving MySQL InnoDB Deadlocks and Lock‑Wait Timeouts in Data‑Warehouse Workloads

This article explains how to quickly locate and fix online MySQL problems such as partial update failures, InnoDB deadlocks, and lock‑wait timeouts by analyzing server logs, understanding InnoDB row‑lock behavior, optimizing indexes, adjusting transaction settings, and using a custom log‑collection script.

Database PerformanceIndex OptimizationInnoDB
0 likes · 19 min read
Diagnosing and Resolving MySQL InnoDB Deadlocks and Lock‑Wait Timeouts in Data‑Warehouse Workloads
ITPUB
ITPUB
Dec 19, 2017 · Databases

Why a Simple DELETE Triggers a MySQL Deadlock – Step‑by‑Step Log Analysis

The article walks through a puzzling MySQL deadlock caused by two concurrent transactions on a table with a unique index, explains how to read the InnoDB status output, identifies the lock types and order, and shows a detailed step‑by‑step reconstruction of the deadlock scenario.

InnoDBdeadlocklocking
0 likes · 11 min read
Why a Simple DELETE Triggers a MySQL Deadlock – Step‑by‑Step Log Analysis
Qunar Tech Salon
Qunar Tech Salon
Jun 27, 2017 · Databases

Database Deadlock Cases and Their Resolutions

This article examines three real‑world MySQL deadlock incidents—unique‑key null insertion, concurrent duplicate‑key insertion, and a JDBC parameter bug—detailing their detection, analysis, and the concrete fixes applied to prevent recurrence.

JDBCUnique Indexdeadlock
0 likes · 9 min read
Database Deadlock Cases and Their Resolutions
dbaplus Community
dbaplus Community
May 16, 2017 · Databases

Why MySQL Hung: A Mutex Deadlock Bug and Its Fix

A MySQL 5.5 server on CentOS 6.7 hung because two internal mutexes (LOCK_index and LOCK_thread_count) deadlocked during concurrent purge binlog and reset master commands, and the issue was resolved by upgrading to a version where the bug is fixed.

deadlockgdbmysql
0 likes · 5 min read
Why MySQL Hung: A Mutex Deadlock Bug and Its Fix
ITPUB
ITPUB
Mar 11, 2017 · Databases

How Does MySQL InnoDB Lock Rows? Deep Dive into MVCC, 2PL, and Deadlocks

This article explains MySQL InnoDB's locking mechanisms—including MVCC snapshot vs. current reads, two‑phase locking, isolation levels, lock types, GAP locks, and deadlock scenarios—by analyzing simple and complex SQL examples and showing how different index and isolation configurations affect lock acquisition.

InnoDBIsolationMVCC
0 likes · 25 min read
How Does MySQL InnoDB Lock Rows? Deep Dive into MVCC, 2PL, and Deadlocks
ITPUB
ITPUB
Jan 19, 2017 · Fundamentals

How to Detect and Analyze Linux Deadlocks with pstack and gdb

This article explains what a deadlock is, outlines its four necessary conditions, provides a sample pthread program that deadlocks, and shows step‑by‑step how to use pstack and gdb on Linux to identify the stuck threads and understand the root cause.

deadlockgdbpstack
0 likes · 14 min read
How to Detect and Analyze Linux Deadlocks with pstack and gdb