Top "Atomicity" questions

In concurrent programming, an operation (or set of operations) is atomic, linearizable, indivisible or uninterruptible if it appears to the rest of the system to occur instantaneously.

When do I really need to use atomic<bool> instead of bool?

Isn't atomic<bool> redundant because bool is atomic by nature? I don't think it's possible to have a …

c++ c++11 atomicity stdatomic
Django - Rollback save with transaction atomic

I am trying to create a view where I save an object but I'd like to undo that save if …

python django transactions atomicity django-database
Avoid duplicate POSTs with REST

I have been using POST in a REST API to create objects. Every once in a while, the server will …

rest post atomicity
Atomic Operations and multithreading

Recently I was reading a tutorial, in that I came across a statement that says.. "The Java language specification guarantees …

java multithreading variables synchronization atomicity
Is file append atomic in UNIX?

In general, what can we take for granted when we append to a file in UNIX from multiple processes? Is …

unix file-io posix atomic atomicity
reference assignment is atomic so why is Interlocked.Exchange(ref Object, Object) needed?

In my multithreaded asmx web service I had a class field _allData of my own type SystemData which consists of …

c# multithreading atomicity volatility
Is rename() atomic?

I am not being able to check this via experiments and could not gather it from the man pages as …

linux file-rename atomicity vfs
Atomic properties vs thread-safe in Objective-C

In most of the discussions I've read, it indicates that making a property atomic does not guarantee it to be …

ios objective-c multithreading thread-safety atomicity
Pop multiple values from Redis data structure atomically?

Is there a Redis data structure, which would allow atomic operation of popping (get+remove) multiple elements, which it contains? …

data-structures redis time-complexity atomicity