Top "Atomic" questions

An atomic operation is indivisible.

How to declare a vector of atomic in C++

I am intending to declare a vector of atomic variables to be used as counters in a multithreaded programme. Here …

c++ stl c++11 atomic
How to perform atomic operations on Linux that work on x86, arm, GCC and icc?

Every Modern OS provides today some atomic operations: Windows has Interlocked* API FreeBSD has <machine/atomic.h> Solaris …

c++ c linux atomic
atomic operation cost

What is the cost of the atomic operation (any of compare-and-swap or atomic add/decrement)? How much cycles does it …

performance atomic cpu-architecture lock-free
What operations are atomic in C#?

Is there a systematic way to know whether an operation in C# will be atomic or not? Or are there …

c# .net multithreading atomic
Understanding std::atomic::compare_exchange_weak() in C++11

bool compare_exchange_weak (T& expected, T val, ..); compare_exchange_weak() is one of compare-exchange primitives provided in C++11. …

c++ multithreading c++11 atomic
Atomic pointers in c++ and passing objects between threads

My question involves std::atomic<T*> and the data that this pointer points to. If in thread 1 I …

c++ multithreading c++11 atomic memory-model
Understanding c++11 memory fences

I'm trying to understand memory fences in c++11, I know there are better ways to do this, atomic variables and …

c++ c++11 atomic
C++ std::atomic vs. Boost atomic

In my application, I have an int and a bool variable, which are accessed (multiple write/read) by multiple threads. …

c++ multithreading atomic
Reliability of atomic counters in DynamoDB

I was considering to use Amazon DynamoDB in my application, and I have a question regarding its atomic counters reliability. …

concurrency counter atomic increment amazon-dynamodb
What do each memory_order mean?

I read a chapter and I didn't like it much. I'm still unclear what the differences is between each memory …

c++ c++11 thread-safety atomic memory-model