Goroutine context switching happens entirely in user space, managed by the Go runtime, which is significantly faster (around 70x) than OS thread switching, which requires expensive kernel-level operations and system calls.
Open the full topic