Skip to content
Opensource internals
  • Posts

Syscalls

entersyscall: How Go Hands the P to the Kernel and Gets It Back

Oct 21, 2026 21 min read Jay Hubbert

entersyscall marks the G as _Gsyscall but keeps its P, exitsyscall reacquires a P or parks the goroutine, and sysmon’s retake loop yanks the P away roughly 20 microseconds into a …

GoInternalsSchedulerSyscallsConcurrency

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·