Goroutines 8kb and windows OS thread 1 mb
问题 As windows user, I know that OS threads consume ~1 Mb of memory due to By default, Windows allocates 1 MB of memory for each thread’s user-mode stack. How does golang use ~8kb of memory for each goroutine , if OS thread is much more gluttonous. Are goroutine sort of virtual threads? 回答1: Goroutines are not threads, they are (from the spec): ...an independent concurrent thread of control, or goroutine , within the same address space. Effective Go defines them as: They're called goroutines