Tag

Thread Management

0 views collected around this technical thread.

FunTester
FunTester
Feb 17, 2025 · Backend Development

Efficient Thread Management with Agrona's AgentRunner for High‑Throughput Java Applications

This article explains how Agrona's lightweight AgentRunner replaces the standard Java ExecutorService to manage long‑running tasks with minimal thread‑context switching, using the Agent model and customizable IdleStrategy to achieve high throughput and low latency in concurrent Java systems.

AgentRunnerConcurrencyJava
0 likes · 10 min read
Efficient Thread Management with Agrona's AgentRunner for High‑Throughput Java Applications
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.

JavaLoad AnalysisThread 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 PoolDatabaseDruid
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.

ConcurrencyDeprecated APIInterrupt
0 likes · 11 min read
How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls
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.

ConcurrencyExecutorServiceJava
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
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 26, 2020 · Fundamentals

ThreadPoolExecutor Self‑Introduction: Core Concepts, Parameters and Lifecycle

This article explains how Java's ThreadPoolExecutor manages threads and tasks, covering the costs of thread creation, the roles of corePoolSize, workQueue, maximumPoolSize, rejection policies, keep‑alive time, and best practices for using bounded queues to avoid OOM.

ConcurrencyExecutorJava
0 likes · 8 min read
ThreadPoolExecutor Self‑Introduction: Core Concepts, Parameters and Lifecycle
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.

ConcurrencyDaemon ThreadJava
0 likes · 4 min read
Understanding Java Daemon Threads and How to Create Them
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.

Event LoopNSTimerRunLoop
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 frameworkThread Managementcode 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.

AndroidCgroupsLinux
0 likes · 20 min read
Understanding Linux Process Scheduling and Android Thread Management
JD Retail Technology
JD Retail Technology
Apr 16, 2018 · Backend Development

Asynchronous Programming with Promise: Concepts and Best Practices

This article introduces asynchronous programming concepts, focusing on Promise-style APIs, their differences from synchronous and callback approaches, and practical usage patterns in backend development.

Asynchronous ProgrammingBackend DevelopmentCompletableFuture
0 likes · 17 min read
Asynchronous Programming with Promise: Concepts and Best Practices
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.

CachingFSALFile System
0 likes · 15 min read
Overview of NFSv4 and the NFS‑Ganesha Architecture