Tagged articles
multi-threading
20 articles · Page 1 of 1
This article explains how false sharing occurs when independent threads modify variables on the same CPU cache line, triggering MESI protocol overhead that degrades performance, and covers detection methods using perf and VTune plus mitigation techniques like cache-line padding and thread-local storage.
CPU cacheMESI protocolcache line
0 likes · 22 min read

TypeScript 7.0 rewrites its compiler in Go, enabling multi-threaded type checking and shared memory, cutting VS Code codebase type-check time from 125.7s to 10.6s (12x faster) and reducing memory usage by half, eliminating editor lag in large projects.
CompilerGoTypeScript
0 likes · 3 min read

This article introduces thread safety by explaining threads, shared memory, and thread switching, then demonstrates a race condition where a Java counter loses increments due to non-atomic count++, and shows how synchronized fixes it by serializing access.
Java ConcurrencyShared MemorySynchronized
0 likes · 11 min read

This article details JD's Taro framework adaptation for HarmonyOS, tracing its evolution from ArkTS-based to C-API-driven single- and multi-threaded architectures, highlighting performance gains, feature support, and future enhancements for native-like HarmonyOS app development.
C APIHarmonyOSReact
0 likes · 9 min read

KeyDB, a Redis fork, replaces the single‑threaded architecture with a multi‑threaded model using a main thread and worker I/O threads, SO_REUSEPORT, per‑thread connection management, fastlock spin‑lock mechanisms, and active‑replica support, enabling concurrent data access and improved performance.
Connection ManagementKeyDBRedis
0 likes · 9 min read

Redis has unveiled a multi‑threaded query engine that dramatically increases query throughput and lowers latency for vector similarity searches, offering up to 16× performance gains and enabling real‑time Retrieval‑Augmented Generation (RAG) workloads in generative AI applications.
Database PerformanceGenerative AIRAG
0 likes · 7 min read

The article investigates a MySQL deadlock that arises when multiple threads concurrently execute INSERT … ON DUPLICATE KEY UPDATE for logistics cancellations, reproduces the issue on MySQL 5.7 and 8.0, analyzes InnoDB lock handling and internal mini‑transactions, and explains how batch processing of each value leads to the deadlock.
MySQLON DUPLICATE KEY UPDATESource Code Analysis
0 likes · 18 min read

This guide explains why IDEA's built‑in Maven builds are slow for large multi‑module projects and provides step‑by‑step instructions to enable multi‑threaded builds, delegate IDE builds to Maven, and add Maven cache extensions and configuration files to dramatically reduce build time.
Build OptimizationCacheIDEA
0 likes · 8 min read

Redis primarily operates with a single thread using I/O multiplexing (select, poll, epoll) to handle massive concurrent connections, while newer versions introduce optional multi‑threaded networking and use child processes for persistence, maintaining its core single‑threaded design for data processing.
Database ArchitectureEpollI/O multiplexing
0 likes · 5 min read

Redis has launched an enhanced, multi‑threaded query engine that dramatically increases throughput and reduces latency for vector similarity searches, enabling vertical scaling and better support for real‑time RAG applications while maintaining sub‑10 ms response times.
Database PerformanceQuery EngineRAG
0 likes · 7 min read

This article provides comprehensive examples of APScheduler's advanced features including database storage, multi-threading/multi-processing, event listeners, dynamic task management, external event triggers, priority settings, logging, advanced triggers, and timezone support.
APSchedulerCron TriggersDatabase Storage
0 likes · 6 min read

QQ 9 achieves a “silky smooth” experience by cutting launch time 40% through lazy‑loaded libraries and main‑thread priority tweaks, boosting runtime fluidity with an NT Kernel that offloads logic, incremental diff refreshes and parallel layout, and adding the Hodor anti‑degradation system, delivering 35% smoother performance and 48% less lag.
Android optimizationAsync LayoutDiff Algorithm
0 likes · 20 min read

This article explains how KeyDB, a Redis fork, redesigns the single‑threaded key‑value store into a multi‑threaded system, covering its thread model, connection management, fastlock mechanism, and active‑replica features while maintaining full Redis API compatibility.
ConcurrencyKeyDBRedis
0 likes · 8 min read

This article provides a comprehensive source-level analysis of Redis 6.0 and later multi-threaded architecture, detailing how the main event loop coordinates with dedicated I/O threads to efficiently distribute, parse, and process concurrent read and write requests while maintaining high throughput and low latency.
EpollI/O multiplexingRedis
0 likes · 21 min read

The article traces Redis’s shift from its original single‑threaded reactor model to the I/O‑threaded architecture introduced in version 6, explaining how atomic operations and round‑robin client distribution let separate threads handle network I/O and parsing while the main thread executes commands, yielding roughly a two‑fold throughput boost but retaining a single‑threaded command core and incurring brief CPU spikes from busy‑wait synchronization.
I/O multiplexingNetwork ModelReactor Pattern
0 likes · 34 min read

This article presents a comprehensive multi‑threaded performance and safety evaluation of four popular database connection pools—Druid, JNDI, Tomcat, and Oracle UCP—across Tomcat, WebSphere, and JWS servers, detailing test setup, methodology, results, and best‑practice recommendations for proper pool usage.
Database Connection PoolDruidJDBC
0 likes · 9 min read

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

This article explains how to design a reusable Java utility for exporting large volumes of data to Excel using Apache POI, covering header configuration, data transformation, cell formatting, multi‑threaded data retrieval, asynchronous processing, and provides sample code and usage instructions.
ExcelJavaPOI
0 likes · 15 min read

X‑Paxos is Alibaba’s high‑performance, independently designed Paxos library that extends the classic consensus algorithm with multi‑threaded architecture, pluggable logging, adaptive batching and pipelining, and flexible node roles, delivering strong consistency, high availability, and low latency for global distributed databases and services.
AlibabaDistributed ConsensusPaxos
0 likes · 22 min read

Learn how to reduce MySQL replication delay by examining the three key stages—binary log writing, log transmission, and slave SQL replay—and applying tactics such as breaking large transactions, ignoring unnecessary databases, and enabling multi‑threaded replication in MySQL 5.7.
Binary LogMySQLmulti-threading
0 likes · 3 min read
