Top "Atomic" questions

An atomic operation is indivisible.

How to guarantee atomic move or exception of a file in Java?

In one of my projects I have concurrent write access to one single file within one JRE and want to …

java multithreading atomic java.nio.file
Why is there no overload of Interlocked.Add that accepts Doubles as parameters?

I fully appreciate the atomicity that the Threading.Interlocked class provides; I don't understand, though, why the Add function only …

c# .net vb.net multithreading atomic
What is the difference between using explicit fences and std::atomic?

Assuming that aligned pointer loads and stores are naturally atomic on the target platform, what is the difference between this: // …

c++ c++11 atomic memory-fences
How Django atomic requests works?

I'd like my Django views to be atomic. I mean, if there is 2 DB-writes in the view, I want either 0 …

python django atomic django-database
Are C/C++ fundamental types atomic?

Are C/C++ fundamental types, like int, double, etc., atomic, e.g. threadsafe? Are they free from data races; that …

c++ c multithreading atomic
What filesystem operations are required to be atomic?

Are unlink, fsync, and rename the only ones that are by definition atomic? Edit: atomic means that an operation either …

filesystems atomic operations atomicity
Which is the difference between AtomicReference and Synchronized?

Is there any difference between AtomicReference and Synchronized? E.G. public class Internet { AtomicReference<String> address; public String …

java multithreading atomic synchronized
How to atomically update a maximum value?

In serial code, updating a maximum could be accomplished simply by template<typename T> void update_maximum(T&…

c++ c++11 concurrency atomic max
ARM64: LDXR/STXR vs LDAXR/STLXR

On iOS, there are two similar functions, OSAtomicAdd32 and OSAtomicAdd32Barrier. I'm wondering when you would need the Barrier variant. …

arm atomic arm64
Is cv::Mat thread-safe (atomic assignment + refcounting)?

I'm attempting to share an image, that is only being used read-only, across threads. Typically I do this sort of …

opencv thread-safety atomic reference-counting