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.

atomic operations and atomic transactions

Can someone explain to me, whats the difference between atomic operations and atomic transactions? Its seems to me that these …

atomicity
create multiple objects without multiple hits to the db in Django 1.8

With Django 1.8 how do I create multiple objects and write to db in a single db transaction? It seems previous …

django database transactions atomicity
ARM: Is writing/reading from int atomic?

On ARM architecture, unfortunately I don't know exactly what chip it is, is a 32 bit int read/write atomic? Is …

c arm atomicity
How to implement a concurrent circular ticker (counter) in Java?

I want to implement a circular counter in Java. The counter on each request should increment (atomically) and on reaching …

java concurrency counter atomicity
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
File.Move atomic operation

I am trying to generate a huge text file using C# and another process is constantly looking at the location …

c# file atomicity
Is pointer assignment atomic in C++?

I've actually heard claims both ways. I suspect they are not, but I wanted to get the topic settled.

c++ multithreading pointers variable-assignment atomicity
Atomic exchange of two std::atomic<T*> objects in a lock-free manner in C++11?

The following code is a skeleton of an atomic pointer class taken from a simulated annealing application in the PARSEC …

c++ c++11 atomic atomicity
What is the use case for the atomic exchange (read-write) operation?

C++0x specifies the std::atomic template for thread safe atomic access to variables. This template has, among others, a …

multithreading language-agnostic c++11 atomic atomicity
On a multicore x86, is a LOCK necessary as a prefix to XCHG?

If mem is a shared memory location, do I need: XCHG EAX,mem or: LOCK XCHG EAX,mem to do …

multithreading x86 atomicity