Tagged articles
143 articles
Page 2 of 2
Programmer DD
Programmer DD
Jul 29, 2020 · Backend Development

Unlocking StampedLock: How Java’s New Lock Boosts Concurrency

This article explains the design, features, usage patterns, and internal implementation of Java's StampedLock, comparing it with ReentrantReadWriteLock, showing code examples, optimistic reading techniques, and the lock's queue mechanics for improved multi‑threaded performance.

LockOptimisticReadStampedLock
0 likes · 26 min read
Unlocking StampedLock: How Java’s New Lock Boosts Concurrency
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 24, 2020 · Fundamentals

Understanding Java's AbstractQueuedSynchronizer (AQS): Concepts, Internal Implementation, and Resource Acquisition/Release

This article explains the core concepts of Java's AbstractQueuedSynchronizer (AQS), its internal FIFO double‑linked list structure, key code snippets, how threads acquire and release resources in exclusive and shared modes, and provides practical insights for mastering Java concurrency.

AQSAbstractQueuedSynchronizerJava
0 likes · 12 min read
Understanding Java's AbstractQueuedSynchronizer (AQS): Concepts, Internal Implementation, and Resource Acquisition/Release
Youzan Coder
Youzan Coder
Jun 12, 2020 · Fundamentals

When to Use synchronized vs. Lock: Mastering Java Locks

This article explains Java's lock mechanisms, comparing synchronized and the Lock interface, detailing their usage, implementation via AQS, system‑level primitives, and providing code examples to help developers choose the appropriate synchronization tool.

AQSJavaLock
0 likes · 11 min read
When to Use synchronized vs. Lock: Mastering Java Locks
Selected Java Interview Questions
Selected Java Interview Questions
Apr 13, 2020 · Backend Development

Differences Between synchronized and Lock in Java with Code Examples

This article explains Java's thread synchronization mechanisms by comparing synchronized blocks with the Lock interface, detailing thread basics, lifecycle methods, lock types, code demonstrations, fairness settings, and underlying JVM implementations, helping readers understand when and how to use each construct effectively.

JavaLockReentrantLock
0 likes · 17 min read
Differences Between synchronized and Lock in Java with Code Examples
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Feb 28, 2020 · Fundamentals

Understanding Locks and Mutex Implementation in Go

This article explains the concept of locks, why they are needed in concurrent programming, and provides an in‑depth look at Go's synchronization primitives—including CAS, atomic operations, spinlocks, semaphores, and the evolution of the sync.Mutex implementation with code examples and performance considerations.

BackendGolangLock
0 likes · 17 min read
Understanding Locks and Mutex Implementation in Go
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
Java Captain
Java Captain
Nov 22, 2019 · Fundamentals

A Fruit Store Analogy for Understanding Java Concurrency

The article uses a vivid fruit‑store story to illustrate core Java concurrency concepts such as threads, lock objects, critical sections, thread states, synchronization queues, wait/notify mechanisms, and volatile variables, helping readers grasp multithreading fundamentals through relatable scenarios.

JavaLockThread
0 likes · 17 min read
A Fruit Store Analogy for Understanding Java Concurrency
Big Data Technology & Architecture
Big Data Technology & Architecture
Oct 26, 2019 · Databases

KeyDB Multithreaded Architecture and Design Overview

KeyDB is a high‑performance, multithreaded fork of Redis that retains full Redis compatibility while delivering up to twice the query throughput and 60 % lower latency, and the article explains its thread model, connection management, fastlock mechanism, and active‑replica features in detail.

KeyDBLockReplication
0 likes · 7 min read
KeyDB Multithreaded Architecture and Design Overview
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 21, 2019 · Fundamentals

Why Python Threads Can’t Fully Utilize Multi‑Core CPUs and How to Use Them Effectively

This tutorial explains Python's multithreading model, its advantages and limitations—including the Global Interpreter Lock—demonstrates thread creation with the threading module, shows race conditions and lock usage, compares processes and threads, and discusses when to choose threads, processes, or asynchronous I/O for different workloads.

GILLockPython
0 likes · 17 min read
Why Python Threads Can’t Fully Utilize Multi‑Core CPUs and How to Use Them Effectively
Java Backend Technology
Java Backend Technology
Oct 20, 2019 · Databases

How KeyDB Transforms Redis into a Multi‑Threaded Database

This article explains how KeyDB, a Redis fork, redesigns the single‑threaded architecture into a multi‑threaded model with worker threads, per‑thread connection management, a custom fastlock mechanism, and an active‑replica mode that enables writable replicas and conflict‑resolution using timestamps.

Connection ManagementKeyDBLock
0 likes · 7 min read
How KeyDB Transforms Redis into a Multi‑Threaded Database
Programmer DD
Programmer DD
Jul 20, 2019 · Databases

Master MySQL Fundamentals: Transactions, Indexes, Locks, and Performance Optimization

This comprehensive guide covers MySQL basics, including the definition of MySQL, transaction concepts and ACID properties, isolation levels, common concurrency issues, index structures and usage, storage engine differences, lock mechanisms, and practical techniques for optimizing large tables and improving performance.

LockStorage Enginedatabase
0 likes · 24 min read
Master MySQL Fundamentals: Transactions, Indexes, Locks, and Performance Optimization
21CTO
21CTO
Apr 11, 2019 · Backend Development

Mastering Java Concurrency: Threads, Locks, ThreadPools, and More

This comprehensive guide explores Java concurrency fundamentals—including processes, threads, daemon threads, thread states, synchronization methods, scheduling algorithms, wait vs. sleep, ThreadLocal, locks, volatile, CAS, Unsafe, thread pools, executor policies, blocking queues, Fork/Join, atomic classes, barriers, semaphores, deadlock, IPC, and interruption—providing essential knowledge for building high‑performance backend systems.

JavaLockSynchronization
0 likes · 26 min read
Mastering Java Concurrency: Threads, Locks, ThreadPools, and More
Youzan Coder
Youzan Coder
Feb 20, 2019 · Databases

MySQL REPLACE INTO Deadlock: Case Study and Analysis

The article analyzes how MySQL’s REPLACE INTO statement can cause deadlocks by acquiring exclusive GAP locks during duplicate‑key handling, illustrates the issue with a step‑by‑step case study of three concurrent transactions, and recommends using pre‑check SELECT‑INSERT or serializing the statements to avoid the problem.

Case StudyInnoDBLock
0 likes · 11 min read
MySQL REPLACE INTO Deadlock: Case Study and Analysis
Java Captain
Java Captain
Nov 3, 2018 · Fundamentals

Differences Between synchronized and Lock in Java and Their Usage

This article explains the fundamental differences between Java's synchronized keyword and the Lock interface, covering thread basics, lock types, a detailed comparison table, and practical code demos that illustrate how to acquire, try, and release locks in various scenarios.

Lockconcurrencyjava-lock
0 likes · 14 min read
Differences Between synchronized and Lock in Java and Their Usage
Hujiang Technology
Hujiang Technology
Oct 29, 2018 · Backend Development

Implementing a Custom Java AQS Lock from Scratch

This tutorial walks through building a simple Java lock using AbstractQueuedSynchronizer (AQS), starting with a basic MyLock class, adding thread parking with Unsafe, creating a FIFO thread container, and refining lock and unlock methods to achieve correct synchronization and avoid lock starvation.

AQSJavaLock
0 likes · 15 min read
Implementing a Custom Java AQS Lock from Scratch
Java Backend Technology
Java Backend Technology
Oct 15, 2018 · Databases

Master MySQL Indexes and Locks: Boost Performance and Avoid Pitfalls

This article explains MySQL's index structures, how indexes accelerate queries but slow down writes, the differences between B‑tree and hash indexes, clustered versus non‑clustered indexes, the left‑most prefix rule, and provides a comprehensive overview of MySQL locking mechanisms and best practices.

InnoDBLockdatabase
0 likes · 18 min read
Master MySQL Indexes and Locks: Boost Performance and Avoid Pitfalls
Java Captain
Java Captain
Sep 12, 2018 · Fundamentals

Understanding Processes, Threads, Multithreading, and Thread Safety in Java

This article explains the fundamentals of processes, threads, and multithreading in Java, illustrates common thread‑safety problems with example code, and demonstrates how to achieve safe concurrent execution using synchronized blocks and the Lock API, including tryLock with timeout.

JavaLockmultithreading
0 likes · 11 min read
Understanding Processes, Threads, Multithreading, and Thread Safety in Java
Java Captain
Java Captain
Aug 17, 2018 · Fundamentals

Understanding Java ReadWriteLock: Theory, Implementation, and Usage

This article explains why read‑write locks are needed, presents a simple Java implementation, and dives into the inner workings of ReentrantReadWriteLock, covering state encoding, acquisition and release algorithms, lock downgrading, and fairness policies.

AQSJavaLock
0 likes · 18 min read
Understanding Java ReadWriteLock: Theory, Implementation, and Usage
Programmer DD
Programmer DD
Jun 10, 2018 · Backend Development

Unlocking Java Concurrency: How AQS Powers Modern Locks

This article explains the role of Java's AbstractQueuedSynchronizer (AQS) as the core framework for building locks and other synchronizers, detailing its state management, FIFO queue mechanism, and the essential methods developers need to implement custom concurrency utilities.

AQSBackendJava
0 likes · 7 min read
Unlocking Java Concurrency: How AQS Powers Modern Locks
Architect's Tech Stack
Architect's Tech Stack
Mar 23, 2018 · Databases

MySQL Interview Questions and Answers: ACID, Isolation Levels, Storage Engines, Indexes, Locks, and More

This article compiles essential MySQL interview topics, covering ACID transaction properties, isolation levels and their issues, storage engine differences, index types, query execution order, lock mechanisms, temporary tables, normalization, read‑write splitting, performance tuning, and recovery logs, providing concise explanations and examples for each concept.

LockSQLindex
0 likes · 36 min read
MySQL Interview Questions and Answers: ACID, Isolation Levels, Storage Engines, Indexes, Locks, and More
Java Captain
Java Captain
Nov 3, 2017 · Fundamentals

Comprehensive Guide to Java Multithreading and Concurrency Utilities

This article provides an in‑depth overview of Java multithreading, covering thread creation, lifecycle methods, synchronization mechanisms, volatile semantics, thread‑local storage, high‑level concurrency utilities such as ReentrantLock, CountDownLatch, CyclicBarrier, Semaphore, Executors, Callable/Future, and atomic classes, with practical code examples and usage tips.

ExecutorServiceLockThread
0 likes · 26 min read
Comprehensive Guide to Java Multithreading and Concurrency Utilities
Java Backend Technology
Java Backend Technology
Oct 12, 2017 · Backend Development

Mastering Java’s ReentrantReadWriteLock: When to Use Read/Write Locks

This article explains Java’s ReentrantReadWriteLock, detailing its shared read lock and exclusive write lock behavior, comparing it to ReentrantLock and concurrent collections, and provides clear code examples demonstrating read‑read sharing, write‑write exclusion, and read‑write mutual exclusion.

JavaLockReentrantReadWriteLock
0 likes · 3 min read
Mastering Java’s ReentrantReadWriteLock: When to Use Read/Write Locks
Java Captain
Java Captain
Aug 22, 2017 · Fundamentals

Comparison of synchronized and Lock in Java: Limitations, Advantages, and Usage

This article explains the limitations of Java's synchronized keyword, introduces the Lock framework from java.util.concurrent.locks, compares their features, and demonstrates practical usage through multiple code examples covering ReentrantLock, tryLock, lockInterruptibly, ReadWriteLock, and fairness concepts.

Lockconcurrencymultithreading
0 likes · 25 min read
Comparison of synchronized and Lock in Java: Limitations, Advantages, and Usage
MaGe Linux Operations
MaGe Linux Operations
Aug 31, 2015 · Fundamentals

Master Python Multiprocessing: Processes, Locks, Queues, and More

This article explains how to use Python's multiprocessing module to achieve true parallelism, covering Process creation, inter‑process synchronization primitives such as Lock, Semaphore, Event, communication tools like Queue and Pipe, and advanced patterns with Pool, all illustrated with runnable code examples.

LockPoolQueue
0 likes · 17 min read
Master Python Multiprocessing: Processes, Locks, Queues, and More