Goroutine — lightweight. Thread — OS-level.
Stack:
Scheduling:
1go func() {2 fmt.Println("Concurrent")3}()
When to use goroutines:
When to use threads:
Common mistakes:
runtime.LockOSThread()