(no title)
ds300 | 11 years ago
The compiler only inserts yeilds at some call sites. It's not a total solution like real preemptive scheduling, so you still need to be careful.
ds300 | 11 years ago
The compiler only inserts yeilds at some call sites. It's not a total solution like real preemptive scheduling, so you still need to be careful.
Rapzid|11 years ago
gtani|11 years ago
and http://dave.cheney.net/2014/06/07/five-things-that-make-go-f...
slimsag|11 years ago
Goroutines by specification have the potential to run all at the same time, in the exact way that OS-level threads do.
In older _implementatoins_ of Go, goroutines were not preemptively scheduled, and exactly as you say you had to be careful.