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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of concurrency

concurrency

Photo of Atomics

Atomics

Related news:

News photo

Concurrency in Haskell: Fast, Simple, Correct

News photo

Valar Atomics comes out of stealth with $19M and a pilot reactor site

News photo

Par: Process language with an interactive playground for exploring concurrency