Deepin Linux
Deepin Linux
Apr 16, 2026 · Fundamentals

Why Understanding User vs. Kernel Mode Is Key to Mastering Linux

This article explains the fundamental differences between user mode and kernel mode in Linux, why the separation matters for security and stability, how mode switches occur via system calls, interrupts, and traps, and provides practical code examples and performance‑optimizing techniques such as zero‑copy and asynchronous I/O.

KernelLinuxPerformance
0 likes · 49 min read
Why Understanding User vs. Kernel Mode Is Key to Mastering Linux
Deepin Linux
Deepin Linux
Sep 22, 2025 · Fundamentals

Why User‑Kernel Mode Switches Slow Down Linux Apps—and How to Fix Them

The article explains how frequent user‑kernel mode switches in Linux create hidden performance bottlenecks, describes the underlying privilege mechanisms on x86 and ARM, details the three switch triggers (system calls, hardware interrupts, traps), and provides practical optimization techniques such as reducing syscalls, using zero‑copy APIs, async I/O, DPDK, and kernel‑module examples to improve throughput.

KernelLinuxPerformance
0 likes · 71 min read
Why User‑Kernel Mode Switches Slow Down Linux Apps—and How to Fix Them
Liangxu Linux
Liangxu Linux
Apr 16, 2025 · Fundamentals

How Early Programmers Imagined the Birth of Operating Systems

A nostalgic narrative explains how low‑level hardware control led to the invention of system calls, kernel/user modes, and ultimately the operating system concept, illustrating the transition from direct hardware manipulation to abstracted library functions.

System Callhardware abstractionkernel mode
0 likes · 5 min read
How Early Programmers Imagined the Birth of Operating Systems
Liangxu Linux
Liangxu Linux
Oct 13, 2020 · Fundamentals

Why Understanding OS Fundamentals Boosts Your Programming Efficiency

This article explains the basic concepts of operating systems, covering their role as a hardware abstraction layer, the distinction between kernel and user modes, and how OS resource management (time‑sharing and space‑sharing) enables multiple programs to run safely and efficiently.

Fundamentalsabstractionkernel mode
0 likes · 10 min read
Why Understanding OS Fundamentals Boosts Your Programming Efficiency