Skip to content
Opensource internals
  • Posts

Timers

Go's Timers: A Per-P Heap and a Timer That Never Blocks a Thread

Oct 21, 2026 24 min read Jay Hubbert

Timers are heap entries owned by a P, checked by the scheduler at the top of every round; a sleeping goroutine parks on a timer attached to its own g, and no OS thread is ever …

GoInternalsTimersSchedulerConcurrency

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·