Advanced C++
Q69 / 100

What is the memory ordering model in C++11 atomic operations?

Correct! Well done.

Incorrect.

The correct answer is B) Atomic operations have six orderings (relaxed, consume, acquire, release, acq_rel, seq_cst) controlling visibility guarantees between threads

B

Correct Answer

Atomic operations have six orderings (relaxed, consume, acquire, release, acq_rel, seq_cst) controlling visibility guarantees between threads

Explanation

memory_order controls how atomic operations synchronize with other threads. seq_cst is safest but costliest. relaxed provides no synchronization. acquire-release establishes happens-before pairs.

Progress
69/100