Tag

Preemption

0 views collected around this technical thread.

OPPO Kernel Craftsman
OPPO Kernel Craftsman
May 24, 2024 · Fundamentals

Linux Kernel Preemption Mechanism: Principles, Implementation, and Performance Analysis

The article examines Linux 6.1’s preemption mechanism, explaining latency sources, the three preemption configurations (none, voluntary, full), the TIF_NEED_RESCHED flag and preempt_count tracking, and how preempt_enable/disable affect real‑time responsiveness, illustrated by a case where RT threads cannot preempt CFS due to disabled preemption in critical driver code.

Linux kernelOperating SystemsPerformance Optimization
0 likes · 21 min read
Linux Kernel Preemption Mechanism: Principles, Implementation, and Performance Analysis
Didi Tech
Didi Tech
May 23, 2019 · Fundamentals

In-depth Analysis of Go Language Scheduler: G, M, P Concepts and Scheduling Loop

The article walks through Go’s 1.9.2 scheduler on Linux, explaining how the three abstractions—G (goroutine), M (OS thread), and P (processor)—are created, bound, and used in the scheduling loop to run, yield, and balance goroutines via local, global, and stolen queues.

ConcurrencyGMPGo
0 likes · 46 min read
In-depth Analysis of Go Language Scheduler: G, M, P Concepts and Scheduling Loop