Go: Understanding Race Conditions and Atomic Synchronization
Preventing data races with mutexes may sound easy, but dealing with race conditions is a whole other matter. Let's learn how to handle these beasts!
Race Condition
Let's say we're keeping track of the money in users' accounts:
// Accounts - money in...
blog.fshtab.com12 min read