3 ms·
No, threads don't use 8kB stacks, they use 2-8MB stacks. A particular point of goroutines is that they use less address space than threads. Both goroutines and
by 4ad 12y ago
No, threads don't use 8kB stacks, they use 2-8MB stacks.
A particular point of goroutines is that they use less address space than threads. Both goroutines and threads use roughly the same amount of physical memory.