2 ms·
I believe the goroutines are cooperative, yielded either explicitly or by calling various library functions. So you don't need quite the same sort of locking as
by to3m 13y ago
I believe the goroutines are cooperative, yielded either explicitly or by calling various library functions. So you don't need quite the same sort of locking as you do with preemptively-multitasked threads, and there's also a much larger set of atomic operations. This should make things much easier...