3 ms·
It's worth pointing out that there is an upside of shared state, in that goroutines are extremely cheap to create. There's also a fairly decent race detector[1
by jfindley 12y ago
It's worth pointing out that there is an upside of shared state, in that goroutines are extremely cheap to create.
There's also a fairly decent race detector[1], and clear documentation on what is and isn't thread safe.
1: http://blog.golang.org/race-detector http://blog.golang.org/race-detector
- samth 12y agoThe cheapness of goroutines (which is a good thing indeed) has nothing to do with shared state. Erlang processes are even cheaper.