3 ms·
But if coroutines can't share memory without copying; they don't allow you to scale (in parallel on one task across cores efficiently). What is then the purpos
by bullen 7y ago
But if coroutines can't share memory without copying; they don't allow you to scale (in parallel on one task across cores efficiently).
What is then the purpose of coroutines as opposed to just having more machines?
OS threads can scale (ipootace^), but then you need proper concurrent data structures and a complex memory model below to support them.
Does go have those?
- sseth 7y agoGoroutines can share memory without copying.
- dickeytk 7y agoIf you watch just one video on Go, even if you don’t plan to ever write Go and just want to learn about it. Make it this one: https://blog.golang.org/concurrency-is-not-parallelism https://blog.golang.org/concurrency-is-not-parallelism It explains in detail how this is possible.