Deepin Linux
Author

Deepin Linux

Research areas: Windows & Linux platforms, C/C++ backend development, embedded systems and Linux kernel, etc.

419
Articles
1
Likes
1.4k
Views
0
Comments
Recent Articles

Latest from Deepin Linux

100 recent articles max
Deepin Linux
Deepin Linux
Dec 7, 2025 · Fundamentals

How CPU Context Switching Powers Multitasking: From Theory to Code

This article explains the fundamentals of CPU context switching, covering the hardware and kernel mechanisms, step‑by‑step saving and restoring of registers, scheduling algorithms, different types of switches, performance costs, optimization techniques, and includes a complete C++ simulation example.

CPUKernelMultitasking
0 likes · 42 min read
How CPU Context Switching Powers Multitasking: From Theory to Code
Deepin Linux
Deepin Linux
Dec 2, 2025 · Fundamentals

Why CPU Cache Misses Slow Down Your Linux System—and How to Fix Them

CPU caches bridge the speed gap between processors and memory, but cache misses can dramatically degrade performance, especially under high concurrency or big‑data workloads; this article explains cache architecture, common miss causes, diagnostic tools like perf and cachestat, and practical optimization techniques for Linux systems.

CPU cacheCache CoherenceLinux performance
0 likes · 44 min read
Why CPU Cache Misses Slow Down Your Linux System—and How to Fix Them
Deepin Linux
Deepin Linux
Nov 30, 2025 · Fundamentals

When Does C++ Generate a Default Copy Constructor? A Deep Dive

This article explains the role of copy constructors in C++, when the compiler automatically provides a default one, the situations that trigger copy construction, why bitwise copying can be unsafe, and how to implement proper deep‑copy semantics with clear code examples.

C++Copy ConstructorDefault Constructor
0 likes · 31 min read
When Does C++ Generate a Default Copy Constructor? A Deep Dive
Deepin Linux
Deepin Linux
Nov 28, 2025 · Backend Development

Boosting C++ Thread Pool Performance: Queue and Memory Optimizations

This article explains why C++ thread pools often hit bottlenecks in high‑concurrency scenarios and provides practical techniques—such as lock‑granularity tuning, lock‑free queues, object‑pool reuse, and pre‑allocation—to improve task scheduling and memory management without relying on external frameworks.

C++OptimizationThread Pool
1 likes · 44 min read
Boosting C++ Thread Pool Performance: Queue and Memory Optimizations
Deepin Linux
Deepin Linux
Nov 27, 2025 · Backend Development

How epoll Scales to Millions of Connections Using Red‑Black Trees and Ready Lists

This article explains the inner workings of Linux's epoll mechanism, detailing how red‑black trees manage registered file descriptors and how a ready‑list delivers events in O(1) time, covering core APIs, data structures, insertion‑deletion logic, and the full kernel‑space to user‑space flow.

LinuxRed-Black Treeepoll
0 likes · 54 min read
How epoll Scales to Millions of Connections Using Red‑Black Trees and Ready Lists
Deepin Linux
Deepin Linux
Nov 23, 2025 · Operations

Uncover the Hidden skb Buffer Bottleneck Causing Linux Network Packet Loss

Discover how the Linux kernel’s skb buffer can silently drop packets despite full NIC utilization, learn the three primary causes—driver ring buffer overflow, kernel queue saturation, and CPU interrupt imbalance—and follow step‑by‑step diagnostics with ethtool, softnet_stat, and sysctl to tune parameters and eliminate this hidden performance killer.

KernelLinuxPerformance
0 likes · 36 min read
Uncover the Hidden skb Buffer Bottleneck Causing Linux Network Packet Loss
Deepin Linux
Deepin Linux
Nov 16, 2025 · Fundamentals

Unlock Asynchronous Power: Master Callback Functions in 3 Minutes

This article explains what callback functions are, how they enable asynchronous programming across languages, demonstrates their implementation with JavaScript, C/C++, Python and HTML examples, and discusses practical use‑cases, advantages, pitfalls like callback hell, and modern alternatives such as Promises and async/await.

AsynchronousC++JavaScript
0 likes · 23 min read
Unlock Asynchronous Power: Master Callback Functions in 3 Minutes
Deepin Linux
Deepin Linux
Nov 15, 2025 · Backend Development

Mastering KGDB: A Step‑by‑Step Guide to Kernel Debugging on Multi‑Core Linux

This comprehensive guide walks Linux kernel developers through KGDB fundamentals, installation, configuration, and practical debugging techniques—including serial and network setups, kernel patching, boot‑parameter tuning, and common pitfalls—enabling precise source‑level debugging of multi‑core kernel issues.

GDBKGDBKernel Development
0 likes · 30 min read
Mastering KGDB: A Step‑by‑Step Guide to Kernel Debugging on Multi‑Core Linux