Van Tran

14%
Flag icon
Goroutines don’t define their own suspension or reentry points; Go’s runtime observes the runtime behavior of goroutines and automatically suspends them when they block and then resumes them when they become unblocked. In a way this makes them preemptable, but only at points where the goroutine has become blocked. It is an elegant partnership between the runtime and a goroutine’s logic.
Concurrency in Go: Tools and Techniques for Developers
Rate this book
Clear rating
Open Preview