Get the latest tech news
Atomics and Concurrency
This is going to be a long post, but I hope you get value out of it. This wasn’t an easy topic to tackle but it was definitely worthwhile!
But, the above graphic assumes that both threads have agreed upon some global order of events, which isn’t true at all anymore! So, we saw our problem earlier was about two threads being unable to agree upon a single view of events and we wanted to prevent that. This brings us back to our classic model of interleaving in concurrency because we now have an order of events both threads agree upon.
Or read this on Hacker News