What is a goroutine and how does it differ from a thread?
spaceto flip
A goroutine is a lightweight concurrent function managed by the Go runtime, not the OS. Goroutines start at ~2KB stack (threads use ~1MB). You can run millions of goroutines. The Go scheduler multiplexes goroutines onto OS threads. Start with: go myFunc().