I\'m trying to understand concurrency in Go. In particular, I wrote this thread-unsafe program:
package main
import
There are a few things to keep in mind about Go's goroutines:
GOMAXPROCS and defaults to 1 currently I think. This may change in the futureThe behavior you are seeing is because the main function never yields back to the thread and is instead involved in a busy loop and since there is only one thread the main loop has no place to run.