Articles  ❯  Concurrency

What's the difference between T, volatile T, and std::atomic<T>?

March 22, 2021

There seems to be a lot of confusion about the significance of using std::atomic<T> over a much more straightforward volatile T or T. In the context of concurrency, being aware of the difference between the three cases is one fundamental cornerstone in ensuring correctness.

Is the Java object constructor thread-safe?

October 8, 2020

Every once in a while, the thread-safely of Java object constructors comes up. More specifically, it’s not so much about the process of object construction but rather the visibility of writes triggered by that process in relation to other threads.

Request Your Review Today