Tagged articles
20 articles
Page 1 of 1
Ray's Galactic Tech
Ray's Galactic Tech
Nov 22, 2025 · Backend Development

How to Safely Stop Java Threads: Best Practices and Code Samples

This guide explains why Thread.stop() is unsafe, compares flag‑based, interruption‑based, and ExecutorService approaches, provides complete Java examples, usage steps, precautions, and advanced techniques for reliably stopping threads while releasing resources correctly.

ExecutorServiceJavaResource Cleanup
0 likes · 8 min read
How to Safely Stop Java Threads: Best Practices and Code Samples
DevOps Operations Practice
DevOps Operations Practice
Sep 23, 2024 · Operations

Root Cause Analysis and Optimization of High Load on Alibaba Cloud RocketMQ Consumer Service

The article investigates why a RocketMQ consumer service running on a 4‑core ECS experiences sustained high load despite low CPU, I/O and memory usage, identifies excessive thread creation and frequent trace‑module context switches as the main causes, and proposes configuration and SDK upgrades to resolve the issue.

JavaRocketMQThread Management
0 likes · 9 min read
Root Cause Analysis and Optimization of High Load on Alibaba Cloud RocketMQ Consumer Service
Architect
Architect
Dec 16, 2023 · Databases

Detailed Walkthrough of Druid Connection Pool Lifecycle and Configuration

This article provides an in‑depth analysis of Druid's connection‑pool lifecycle, covering initialization, connection acquisition, validation, eviction, keep‑alive, and recycling processes, while offering performance‑related configuration recommendations and code examples for Java developers.

Connection PoolDruidJava
0 likes · 24 min read
Detailed Walkthrough of Druid Connection Pool Lifecycle and Configuration
Architect's Guide
Architect's Guide
May 9, 2023 · Backend Development

How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls

This article explains various ways to terminate a running Java thread, including using exit flags, the deprecated stop/suspend/resume methods, interrupt, handling InterruptedException, and the risks of forceful termination, accompanied by detailed code examples and best‑practice recommendations.

Deprecated APIJavaThread
0 likes · 11 min read
How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls
ITPUB
ITPUB
Mar 11, 2023 · Databases

What Happens When You Press Ctrl+C in MySQL? Inside the KILL QUERY Mechanism

This article explains how pressing Ctrl+C in the MySQL client triggers a KILL QUERY command, details the server's multi‑step handling—including thread coordination, flag setting, and transaction rollback—and clarifies differences when autocommit is on or off.

KILL QUERYThread Managementmysql
0 likes · 10 min read
What Happens When You Press Ctrl+C in MySQL? Inside the KILL QUERY Mechanism
Huolala Tech
Huolala Tech
Aug 9, 2022 · Mobile Development

How HLL’s Thread Governance Cut Crashes and Boost iOS Driver App Performance

This article explains how the HLL iOS driver team identified excessive global‑queue usage, thread‑switch overhead, deadlocks and UI‑thread violations, then introduced a priority‑aware queue pool, refined concurrency controls, and built long‑term monitoring to dramatically reduce crashes and improve performance.

GCDThread Managementcrash reduction
0 likes · 13 min read
How HLL’s Thread Governance Cut Crashes and Boost iOS Driver App Performance
JD Retail Technology
JD Retail Technology
Jun 24, 2021 · Backend Development

Understanding Java Thread Pools: Concepts, Advantages, and Implementation Details

This article explains the concept of thread pools, their performance benefits, the three native Java pool implementations, detailed internal mechanisms of ThreadPoolExecutor, task queue choices, rejection policies, and practical tuning advice for real‑world applications such as Tomcat and custom frameworks.

ExecutorServiceJavaThread Management
0 likes · 13 min read
Understanding Java Thread Pools: Concepts, Advantages, and Implementation Details
Code Ape Tech Column
Code Ape Tech Column
Feb 24, 2021 · Databases

Understanding HikariCP Connection Pool Sizing: Principles, Experiments, and Practical Guidelines

This article translates and expands on a HikariCP wiki post, explaining why smaller database connection pools often yield better performance, presenting benchmark videos and data, describing the underlying CPU, disk, and network constraints, and offering a simple formula to calculate an optimal pool size for typical server configurations.

Connection PoolDatabase PerformanceHikariCP
0 likes · 9 min read
Understanding HikariCP Connection Pool Sizing: Principles, Experiments, and Practical Guidelines
FunTester
FunTester
May 25, 2020 · Fundamentals

Understanding Java Daemon Threads and How to Create Them

This article explains what daemon threads are in Java, how they differ from user threads, the importance of setDaemon(true), provides the official setDaemon method documentation, and includes a complete demo program showing a daemon thread printing messages every second until the main thread ends.

Daemon ThreadJavaThread Management
0 likes · 4 min read
Understanding Java Daemon Threads and How to Create Them
Meituan Technology Team
Meituan Technology Team
Apr 2, 2020 · Backend Development

Java ThreadPoolExecutor: Design, Implementation, and Dynamic Management

The article explains Java’s ThreadPoolExecutor—its purpose, core design, lifecycle management, task scheduling, worker behavior, and typical configurations for fast response or batch processing—then proposes a dynamic pool with runtime‑adjustable core and max sizes, queue selection, and real‑time monitoring to prevent mis‑configuration and boost stability.

Dynamic ConfigurationJavaThread Management
0 likes · 30 min read
Java ThreadPoolExecutor: Design, Implementation, and Dynamic Management
JD Retail Technology
JD Retail Technology
Mar 30, 2020 · Mobile Development

Understanding iOS RunLoop: Concepts, Functions, and Practical Applications

This article explains the iOS RunLoop mechanism, its role in keeping apps responsive, how it interacts with UIApplicationMain, timers, thread management, and various RunLoop modes, and provides practical examples for using RunLoop to maintain thread life cycles and improve UI performance.

Mobile DevelopmentNSTimerRunLoop
0 likes · 10 min read
Understanding iOS RunLoop: Concepts, Functions, and Practical Applications
Didi Tech
Didi Tech
Jun 1, 2019 · Mobile Development

Booster: A Lightweight and Scalable Quality Optimization Framework for Mobile Applications

Booster is a lightweight, scalable framework for mobile apps that improves performance, stability, and reduces APK size by using dynamic module loading, third‑party library injection, static‑analysis detection, bytecode‑based thread optimization, SharedPreferences tweaks, and resource compression, delivering over 10 MB size cuts, better crash detection, and non‑intrusive global optimization with full documentation.

Android frameworkCode OptimizationPerformance Optimization
0 likes · 6 min read
Booster: A Lightweight and Scalable Quality Optimization Framework for Mobile Applications
iQIYI Technical Product Team
iQIYI Technical Product Team
Jul 20, 2018 · Fundamentals

Understanding Linux Process Scheduling and Android Thread Management

The article explains why an Android app’s main thread can be blocked by detailing Linux process versus thread concepts, the Completely Fair Scheduler’s priority and vruntime calculations, real‑time and nice priorities, and how Android uses cgroups and SchedPolicy enums to allocate CPU shares among foreground, background, and system threads.

AndroidLinuxThread Management
0 likes · 20 min read
Understanding Linux Process Scheduling and Android Thread Management
Alibaba Cloud Developer
Alibaba Cloud Developer
Jul 19, 2018 · Mobile Development

How Flutter’s Engine Thread Model Boosts Mobile Performance

This article explains Flutter’s cross‑platform engine architecture, detailing its four Task Runners, the Dart isolate model, platform‑specific implementations, custom thread configurations, and common pitfalls, helping developers understand and optimise performance for mobile apps.

Dart IsolateFlutterMobile Development
0 likes · 12 min read
How Flutter’s Engine Thread Model Boosts Mobile Performance
Architecture Digest
Architecture Digest
Mar 25, 2018 · Fundamentals

Overview of NFSv4 and the NFS‑Ganesha Architecture

This article provides a comprehensive overview of NFSv4’s design goals, security and performance improvements, and details the four major advantages of NFS‑Ganesha, its modular architecture, memory and thread management, caching mechanisms, and a practical Ceph RGW integration example.

FSALNFS-GaneshaNFSv4
0 likes · 15 min read
Overview of NFSv4 and the NFS‑Ganesha Architecture
Java High-Performance Architecture
Java High-Performance Architecture
Sep 1, 2015 · Databases

How a Database Server Starts, Handles, and Completes Client Requests

The article outlines the step‑by‑step lifecycle of a database server—from system initialization and buffer allocation, through connection and thread management, request parsing, optimization, storage‑engine interaction, to final response delivery and cleanup—illustrated with diagrams of each stage.

Database ArchitectureQuery ProcessingRequest Handling
0 likes · 4 min read
How a Database Server Starts, Handles, and Completes Client Requests