You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To "lock / free", I tried to use "atomic.CompareAndSwap" and "mutex". To my surprise, in a non-parallel use of "mutex" I was faster. Explain why "mutex" faster, because he uses "atomic.CompareAndSwap"?
What version of Go are you using (go version)? 1.7
What operating system and processor architecture are you using (go env)? Win7/i3