The Runtime Theory
Runtime & Execution

How Threads Actually Work

How Threads Actually Work

16:06#threads#scheduling#kernel

Everything you were told about "just add a thread" — examined at the level where it's true. We build the mental model from the CPU upward: what a thread is in hardware, what a context switch actually costs, and why Go and Rust async exist.

Topics covered:

  • Register state and the cost of switching
  • The scheduler's fairness problem in one diagram
  • Priorities, cgroups, and the myth of the "priority" knob
  • Goroutines vs OS threads: the 100× gap explained

Related articles

More in Runtime & Execution

Depth, delivered weekly

One technical dispatch a week — articles and episode notes before they go public.

One technical dispatch per week. No noise.