Tag

Locks

1 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Jun 11, 2025 · Fundamentals

Mastering iOS Locks: Types, Usage, and Performance Comparison

This article explains the relationship between locks and multithreading on iOS, introduces common lock types such as NSRecursiveLock, NSConditionLock, OSSpinLock, os_unfair_lock, pthread_mutex, and @synchronized, demonstrates resource contention with code examples, discusses lock selection, priority inversion, and provides a performance ranking of various locks.

ConcurrencyLocksMultithreading
0 likes · 22 min read
Mastering iOS Locks: Types, Usage, and Performance Comparison
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 4, 2025 · Backend Development

Understanding Java Locks, synchronized, ReentrantLock, and Kotlin Coroutine Synchronization

This article explains Java's lock mechanisms—including synchronized, ReentrantLock, and their JVM implementations—covers lock classifications, memory barriers, CAS, and compares them with Kotlin coroutine synchronization tools like Mutex, providing code examples and practical guidance for safe concurrent programming.

ConcurrencyJVMJava
0 likes · 22 min read
Understanding Java Locks, synchronized, ReentrantLock, and Kotlin Coroutine Synchronization
Lobster Programming
Lobster Programming
Jun 3, 2025 · Databases

Master MySQL Locks: From Row to Intention Locks Explained with Real Examples

This article explains MySQL InnoDB locking mechanisms—including row, record, gap, next‑key, and intention locks—illustrates each type with SQL statements and performance_schema data, and shows how they interact during concurrent transactions.

ConcurrencyDatabaseInnoDB
0 likes · 8 min read
Master MySQL Locks: From Row to Intention Locks Explained with Real Examples
Cognitive Technology Team
Cognitive Technology Team
May 6, 2025 · Backend Development

Understanding Java's AbstractQueuedSynchronizer (AQS): Core Components, Design, and Practical Applications

AbstractQueuedSynchronizer (AQS) is the core framework for building Java locks and synchronizers, providing state management, FIFO queuing, and blocking/unblocking mechanisms; this article explains its components, design patterns, thread safety operations, and real-world implementations such as ReentrantLock and Semaphore, with code examples.

AQSConcurrencyJava
0 likes · 11 min read
Understanding Java's AbstractQueuedSynchronizer (AQS): Core Components, Design, and Practical Applications
Java Captain
Java Captain
May 2, 2025 · Fundamentals

Understanding Java Concurrency: Challenges and Solutions from Hardware to JVM

This article uses real‑world analogies to dissect the three core challenges of Java concurrency—ordering, visibility, and atomicity—and explains how hardware instructions, JVM mechanisms, and Java SDK tools such as locks, CAS, and waiting/notification utilities provide efficient solutions.

CASConcurrencyJVM
0 likes · 14 min read
Understanding Java Concurrency: Challenges and Solutions from Hardware to JVM
macrozheng
macrozheng
Feb 20, 2025 · Backend Development

Master Java Concurrency & SpringBoot: DJI Interview Insights & Advanced Locks

This article combines a DJI interview experience—including salary and bonus details—with an in‑depth guide to Java concurrency tools, lock implementations, SpringBoot AOP, filters vs. interceptors, Kafka ordering, zero‑copy techniques, and related backend development best practices.

Backend DevelopmentConcurrencyJava
0 likes · 26 min read
Master Java Concurrency & SpringBoot: DJI Interview Insights & Advanced Locks
Raymond Ops
Raymond Ops
Jan 24, 2025 · Databases

Master MySQL Transactions, Locks, and Connection Pools with Practical Python Examples

This guide explains MySQL transaction fundamentals, ACID properties, row and table locking mechanisms, and demonstrates how to implement them in Python using pymysql, including connection pooling, context managers, and a reusable SQL helper class for robust database operations.

Connection PoolLocksMySQL
0 likes · 19 min read
Master MySQL Transactions, Locks, and Connection Pools with Practical Python Examples
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 27, 2024 · Databases

Summary of InnoDB Lock Module Articles

This article provides a concise English recap of the 27 previously published InnoDB lock module articles, covering theoretical concepts such as table and row locks, lock waiting, deadlock handling, and practical scenarios like lock behavior during inserts and duplicate key operations.

ConcurrencyDatabase InternalsInnoDB
0 likes · 6 min read
Summary of InnoDB Lock Module Articles
Selected Java Interview Questions
Selected Java Interview Questions
Nov 15, 2024 · Databases

Understanding MySQL Transactions, MVCC, Isolation Levels, and Lock Types

This article explains MySQL transaction fundamentals, the ACID properties, MVCC implementation, isolation levels, snapshot versus current reads, and the various lock types and modes, and provides practical examples of how different SQL statements acquire locks under InnoDB.

InnoDBIsolation LevelsLocks
0 likes · 14 min read
Understanding MySQL Transactions, MVCC, Isolation Levels, and Lock Types
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 16, 2024 · Databases

MySQL InnoDB Lock Behavior under Repeatable Read and Read Committed Isolation Levels

This article demonstrates how InnoDB handles row, next‑key, and gap locks for a SELECT … FOR SHARE query under REPEATABLE‑READ and READ‑COMMITTED isolation levels, showing the preparation steps, SQL examples, lock inspection queries, and a concise summary of the differences.

InnoDBIsolation LevelsLocks
0 likes · 8 min read
MySQL InnoDB Lock Behavior under Repeatable Read and Read Committed Isolation Levels
Sanyou's Java Diary
Sanyou's Java Diary
Oct 14, 2024 · Fundamentals

Unlocking Java’s AQS: How AbstractQueuedSynchronizer Powers Locks and Synchronizers

This article explains Java's AbstractQueuedSynchronizer (AQS) framework, detailing its FIFO queue, state handling, entry‑wait queue, exclusive and shared lock acquisition, condition‑variable queues, and how core concurrency utilities like ReentrantLock, ReadWriteLock, CountDownLatch, Semaphore, and ThreadPoolExecutor are built on it.

AQSConcurrencyJava
0 likes · 31 min read
Unlocking Java’s AQS: How AbstractQueuedSynchronizer Powers Locks and Synchronizers
Qunar Tech Salon
Qunar Tech Salon
Oct 10, 2024 · Operations

Design and Architecture of a Distributed Task Scheduling System for Database Automation

This document outlines the terminology, background, requirements, task classifications, state model, and detailed architecture—including TaskScheduler, TaskWorker, and TaskConsole components—of a new distributed task scheduling system designed to replace Celery in a database automation platform, with emphasis on scalability, reliability, and extensibility.

AutomationDistributed SystemsLocks
0 likes · 23 min read
Design and Architecture of a Distributed Task Scheduling System for Database Automation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 1, 2024 · Frontend Development

Understanding the Web Locks API: Requesting, Monitoring, and Managing Locks in the Browser

This article introduces the Web Locks API, explaining how to request, monitor, and manage exclusive or shared locks across browser tabs and workers, covering optional parameters such as mode, ifAvailable, steal, and signal, with practical JavaScript code examples.

JavaScriptLocksWeb Locks API
0 likes · 6 min read
Understanding the Web Locks API: Requesting, Monitoring, and Managing Locks in the Browser
Deepin Linux
Deepin Linux
Jun 24, 2024 · Fundamentals

Understanding Linux Kernel Synchronization Mechanisms: Mutual Exclusion, Barriers, Atomic Operations, and Locks

This article explains the concepts, reasons, and implementation methods of Linux kernel synchronization, covering mutual exclusion, various lock types, compiler and memory barriers, atomic operations, semaphores, read‑write semaphores, and spinlocks with illustrative code examples and usage guidelines.

BarriersConcurrencyLocks
0 likes · 34 min read
Understanding Linux Kernel Synchronization Mechanisms: Mutual Exclusion, Barriers, Atomic Operations, and Locks
Selected Java Interview Questions
Selected Java Interview Questions
Jun 13, 2024 · Databases

Understanding InnoDB Locks and Whether Adding a Column Locks the Table in MySQL

This article explains InnoDB lock concepts, differentiates read and write locks, discusses table‑level versus row‑level locking, and examines how MySQL 5.6 and 8.0 handle adding columns without fully locking tables, highlighting online DDL, atomic DDL, and performance considerations.

DDLDatabaseInnoDB
0 likes · 8 min read
Understanding InnoDB Locks and Whether Adding a Column Locks the Table in MySQL
Aikesheng Open Source Community
Aikesheng Open Source Community
May 8, 2024 · Databases

When Can MySQL Locks Block Queries? A Deep Dive into Table‑Level and Metadata Locks

This article explains how MySQL table‑level locks and metadata locks (MDL) can block both reads and writes, describes the two lock implementations, their types, the interaction with LOCK TABLES and FLUSH TABLES, and provides practical queries for diagnosing lock‑related blocking issues.

LocksMySQLPerformance
0 likes · 10 min read
When Can MySQL Locks Block Queries? A Deep Dive into Table‑Level and Metadata Locks
Architect
Architect
Mar 31, 2024 · Backend Development

Common Lock Types in Distributed Systems and Their Java Implementations

This article explains the main lock mechanisms used in concurrent and distributed Java applications—including pessimistic, optimistic, distributed, reentrant, spin, shared, read/write, fair, non‑fair, interruptible, segment, and lock‑upgrade techniques—along with their characteristics, usage scenarios, and sample SQL or Java code snippets.

ConcurrencyDistributed SystemsJava
0 likes · 16 min read
Common Lock Types in Distributed Systems and Their Java Implementations
Tencent Cloud Developer
Tencent Cloud Developer
Feb 22, 2024 · Databases

MongoDB Lock Mechanisms and Implementation Details

MongoDB’s locking system uses a hierarchical resource model with four lock modes, RAII‑style acquisition classes, ticket‑based throttling, and a bucketed lock manager that employs bit‑mask conflict checks and priority flags to grant exclusive locks promptly and prevent starvation.

ConcurrencyDatabaseLock Manager
0 likes · 42 min read
MongoDB Lock Mechanisms and Implementation Details
Deepin Linux
Deepin Linux
Dec 20, 2023 · Fundamentals

C++ Interview Questions: Polymorphism, Vtables, Memory Alignment, STL Containers, and Multithreading Locks

This article presents a comprehensive C++ interview guide covering dynamic polymorphism, vtable mechanics, static vs virtual functions, memory alignment benefits, iterator invalidation in vector and map, erase‑remove idiom, map implementation details, and common synchronization primitives used in multithreaded programming.

C++LocksMultithreading
0 likes · 12 min read
C++ Interview Questions: Polymorphism, Vtables, Memory Alignment, STL Containers, and Multithreading Locks