4 Commits

Author SHA1 Message Date
Eli Bendersky
ef8f0e3831 Deterministic example for atomics.
Fixes #265
2019-09-05 10:50:09 -07:00
Mark McGranaghan
6a58750728 Consistently use Sleep in state-management examples
Consistently use `time.Sleep`, instead of `runtime.Gosched`, to ensure all
goroutines can make progress. `Gosched` wasn't working in the playground
(ref #149).

Also stop trying to compare operation rates. This was tenuous given e.g. how
short the programs ran for, and with the `Sleep`s we now expect the rates to
be similar anyways.
2016-12-27 10:13:03 -08:00
Mark McGranaghan
459d16196a publish mutexes and stateful-goroutines 2012-10-21 19:14:04 -04:00
Mark McGranaghan
e7cb1d1ac8 publish atomic counters 2012-10-19 11:26:54 -04:00