Goroutines: A Hundred Thousand Threads and a Trapdoor
What a goroutine is, why the go keyword makes concurrency almost free, how the runtime multiplexes thousands of them onto a handful of OS threads, and the one rule that trips up everyone: when main returns, the program exits and your goroutines die with it. Compiled and run against Go 1.26.5.