Top "Atomic" questions

An atomic operation is indivisible.

RESTful atomic update of multiple resources?

Imagine a web-application storing some data-resource with some id which stores three attachment (e.g. pdf) per datum. The URL …

rest transactions crud atomic multipartform-data
difference between standard's atomic bool and atomic flag

I wasn't aware of the std::atomic variables but was aware about the std::mutex (weird right!) provided by the …

c++ multithreading c++11 thread-safety atomic
Java Atomic Variable set() vs compareAndSet()

I want to know the difference between set() and compareAndSet() in atomic classes. Does the set() method also ensure the …

java set atomic compare-and-swap
What is the difference between std::shared_ptr and std::experimental::atomic_shared_ptr?

I read the following article by Antony Williams and as I understood in addition to the atomic shared count in …

c++ c++11 concurrency atomic smart-pointers
Is the != check thread safe?

I know that compound operations such as i++ are not thread safe as they involve multiple operations. But is checking …

java multithreading thread-safety atomic race-condition
Double-Checked Lock Singleton in C++11

Is the following singleton implementation data-race free? static std::atomic<Tp *> m_instance; ... static Tp & instance() { if (!…

c++ multithreading c++11 atomic
C++11 memory_order_acquire and memory_order_release semantics?

http://en.cppreference.com/w/cpp/atomic/memory_order, and other C++11 online references, define memory_order_acquire and memory_…

c++ mutex atomic memory-model stdatomic
Disable Hardware & Software Interrupts

Is it possible to disable all interrupts with a ASM/C/C++ program to get full control about the processor? …

assembly x86 atomic interrupt critical-section
How to atomically negate an std::atomic_bool?

The naive boolean negation std::atomic_bool b; b = !b; does not seem to be atomic. I suspect this is …

c++ multithreading c++11 atomic