Top "Atomic" questions

An atomic operation is indivisible.

Why is the volatile qualifier used through out std::atomic?

From what I've read from Herb Sutter and others you would think that volatile and concurrent programming were completely orthogonal …

c++ c++11 atomic volatile
SSE instructions: which CPUs can do atomic 16B memory operations?

Consider a single memory access (a single read or a single write, not read+write) SSE instruction on an x86 …

concurrency x86 thread-safety atomic sse
Why is integer assignment on a naturally aligned variable atomic on x86?

I've been reading this article about atomic operations, and it mentions 32bit integer assignment being atomic on x86, as long …

c++ concurrency x86 atomic memory-alignment
Assembly: does xadd instruction need lock?

I'm reading smphello.s code by allan cruse code in the following part he's trying to setup stack segment for …

assembly x86 atomic smp
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
Do I have to use atomic<bool> for "exit" bool variable?

I need to set a flag for another thread to exit. That other thread checks the exit flag from time …

c++ c++11 atomic
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
When are lock free data structures less performant than mutual exclusion (mutexes)?

I read somewhere (can't find the page anymore) that lock free data structures are more efficient "for certain workloads" which …

multithreading scheduling mutex atomic lock-free
Update DynamoDB Atomic Counter with Python / Boto

I am trying to update an atomic count counter with Python Boto 2.3.0, but can find no documentation for the operation. …

python counter atomic boto amazon-dynamodb
Which variable types/sizes are atomic on STM32 microcontrollers?

Here are the data types on STM32 microcontrollers: http://www.keil.com/support/man/docs/armcc/armcc_chr1359125009502.htm. These …

c arm atomic stm32 freertos