Top "Atomic" questions

An atomic operation is indivisible.

AtomicInteger.incrementAndGet() vs. AtomicInteger.getAndIncrement()

When return value is not of interest, is there any (even irrelevant in practice) difference between AtomicInteger.getAndIncrement() and AtomicInteger.…

java atomic java.util.concurrent
When is it preferable to use volatile boolean in Java rather than AtomicBoolean?

I've looked at the other volatile vs. Atomicxxxx questions in SO (including this one) and have read the description of …

java concurrency atomic volatile
C++ atomic operations for lock-free structures

I'm implementing a lock-free mechanism using atomic (double) compare and swap instructions e.g. cmpxchg16b I'm currently writing this …

c++ atomic lock-free
How to Block and wait using AtomicBoolean

I am looking for a way of pausing a Thread. I started with affectively using a boolean flag (called 'paused'), …

java concurrency atomic java.util.concurrent
std::atomic | compare_exchange_weak vs. compare_exchange_strong

I'm unsure if it's me not understanding or the documentation isn't clearly formulated. The following excerpt has been taken from …

c++ stl c++11 atomic c++-standard-library
Is incrementing a field in MySQL atomic?

I'm making a web site where I would like to increment a counter in a standard MyISAM table. Simplified example: …

mysql thread-safety atomic increment
<stdatomic.h> in GCC 4.8?

I'd like to make use of the new atomic operations provided by the C11 standard. However, trying to #include the …

c multithreading gcc atomic c11
Does std::atomic<std::string> work appropriately?

I am reading through Anthony Williams' "C++ Concurrency in Action" and in Chapter 5, which talks about the new multithreading-aware memory …

c++ atomic stdstring stdatomic
Must I call atomic load/store explicitly?

C++11 introduced the std::atomic<> template library. The standard specifies the store() and load() operations to atomically set / …

c++ c++11 atomic
What is atomicity in dbms

I read something like below in 1NF form of DBMS. There was a sentence as follows: "Every column should be …

sql database atomic database-normalization