Understanding Thread Pool: Why Idle Non-Core Threads Are Not Immediately Recycled
Recently, a friend asked me a question on WeChat. He said: "WhyBro, are you there?"
I replied: "What's up?"
He quickly threw out a question.
I took a casual glance and thought this question was very simple.
But it turned out there was a hidden article behind it.
The story starts with this question:
The thread pool configura ...
Posted on Fri, 21 Aug 2026 16:02:44 +0000 by sciencebear
Developing and Integrating DLL-Based Remote Control Components: A Practical Guide
Overview of DLL-Based Remote Control Systems
A remote control system impleemented as a dynamic link library (DLL) enables seamless integration into host applications, supporting functions such as remote monitoring, command execution, and desktop sharing. This architectural approach reduces resource usage by leveraging shared code pages across p ...
Posted on Mon, 17 Aug 2026 16:49:04 +0000 by h123z
Python Concurrency Mechanics: Threading, GIL, and Synchronization Primitives
Building a Concurrent TCP Server with Threads
To handle multiple client connections simultaneously, a server can utilize a thread pool pattern. Instead of processing requests sequentially, the server spawns a dedicated worker for each incoming connection. This approach encapsulates the connection logic within a specific handler function.
import ...
Posted on Mon, 17 Aug 2026 16:28:55 +0000 by fishdish
Concurrency Utilities in Java: Callable, ReentrantLock, and Synchronized Explained
Returning Values from Threads with Callable
The Callable interfcae allows threads to return computation results and throw checked exceptions. Unlike Runnable, it features a call() method designed for task execution. To retreive the result, wrap the Callable instance in a FutureTask and pass it to a Thread.
import java.util.concurrent.Callable;
...
Posted on Thu, 13 Aug 2026 16:39:28 +0000 by eurozaf
Creating Qt Threads Through Composition Rather Than Inheritance
Legacy Approaches Versus Modern Techniques
Understanding Historical Context
In early object-oriented programming practices, software engineers commonly extended system functionality through inheritance. This approach was prevalent in Qt applications where developers would subclass QThread and override the run() function to implement thread beha ...
Posted on Tue, 11 Aug 2026 16:53:14 +0000 by fotofx
Understanding Java Thread Pool Reuse Mechanisms
The Concept of Thread Reuse
In standard Java programming, when a task needs to be executed asynchronously, a developer typically creates a Thread object and passes a Runnable target to it. The execution is triggered by the native start0 method, which eventually calls the run() method of the Thread class. The standard implementation of Thread.ru ...
Posted on Sat, 08 Aug 2026 16:51:05 +0000 by gewthen
Understanding Multithreading, GIL, and Coroutines in Python
Process vs Thread Comparison
# Key differences between processes and threads
# 1. Processes consume significantly more resources than threads
# 2. Processes have isolated data spaces; threads share data within the same process
# 3. Multiple processes don't share data by default
# --> Inter-process communication (IPC) is required
# --&g ...
Posted on Thu, 06 Aug 2026 16:45:37 +0000 by CreativityLost
Python Threading Fundamentals for Concurrent Programming
Core Threading Concepts
Threading represents the execution flow within a computational unit, serving as an abstract concept that defines the fundamental execution entity of a CPU. Understanding the distinction between processes and threads is crucial:
Processes functon as resource containers, holding all necessary runtime resources, while thre ...
Posted on Tue, 04 Aug 2026 16:29:25 +0000 by websesame
Java Thread Pool Implementation: Parameters, Factory Methods, and Execution Flow
Thread Pool Mechanism
Creating and destroying threads repeatedly introduces significant overhead when handling a large volume of concurrent tasks. A thread pool maintains a pool of reusable worker threads, eliminating the need to spawn new threads for each task. When a task arrives, its assigned to an idle thread from the pool. After completing ...
Posted on Thu, 30 Jul 2026 17:04:22 +0000 by Tory
Multithreading in Linux: Concepts and Implementation
Thread Fundamentals
A thread represents the smallest executable unit managed by the operating system scheduler. Unlike processes, threads within the same process share memory space, file descriptors, and other resources. This model enables efficient parallel execution on multi-core systems but requires careful synchronization to avoid data race ...
Posted on Tue, 28 Jul 2026 16:26:06 +0000 by egalp