2 ms·
"It also allows parallel/async code to be written in the exact same way as concurrent code, simply by setting GOMAXPROCS to 1." Aargh! If your code has race co
by Animats 12y ago
"It also allows parallel/async code to be written in the exact same way as concurrent code, simply by setting GOMAXPROCS to 1."
Aargh! If your code has race conditions with GOMAXPROCS > 1, it's broken. "Share by communicating, not by sharing". (Ignore the bad examples in "Ineffective Go". Send the actual data over the channel, not a reference to it. Don't try to use channels as a locking mechanism.)