Tagged articles
3 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Oct 17, 2025 · Fundamentals

How Linux Kernel Preemption Keeps Your System Responsive – A Deep Dive

This article explains why Linux’s kernel preemption mechanism is essential for allocating CPU resources efficiently, compares kernel and user preemption, details the TIF_NEED_RESCHED flag and preempt_count counter, and shows practical C code and real‑world case studies that illustrate how high‑priority tasks can pre‑empt low‑priority work without causing priority inversion.

Linux schedulingSpinlockTIF_NEED_RESCHED
0 likes · 41 min read
How Linux Kernel Preemption Keeps Your System Responsive – A Deep Dive
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jul 11, 2025 · Fundamentals

Why Android’s Scheduler Struggles: Load Normalization, CPU Frequency, and Priority Inversion Explained

This article dissects Android’s task scheduling challenges by correcting misconceptions about virtual runtime, detailing load‑normalization using WAL‑T, deriving a frequency‑aware task_load formula, exposing the chicken‑egg problem between load and frequency, and exploring priority inversion and rtmutex as a mitigation strategy.

AndroidCPU FrequencyLinux scheduler
0 likes · 17 min read
Why Android’s Scheduler Struggles: Load Normalization, CPU Frequency, and Priority Inversion Explained
ByteDance Terminal Technology
ByteDance Terminal Technology
Nov 23, 2022 · Fundamentals

Understanding and Solving Priority Inversion on iOS

This article analyzes a real‑world iOS deadlock caused by priority inversion when a low‑priority thread holds a read‑write lock, explains bounded and unbounded priority inversion, evaluates priority‑ceiling and priority‑inheritance protocols, and demonstrates practical fixes using QoS adjustments, temporary priority boosts, and appropriate lock choices.

LocksQoSiOS
0 likes · 26 min read
Understanding and Solving Priority Inversion on iOS