All challenges
Multiple ChoiceIntermediate 45s

atomic default memory order

What is the default memory ordering of `std::atomic` load()/store() operations?
Options
  1. 1std::memory_order_relaxed, the weakest ordering, which imposes no synchronization at all.
  2. 2std::memory_order_seq_cst (sequentially consistent) — the strongest and most expensive.
  3. 3std::memory_order_acquire for loads and std::memory_order_release for stores by default.
  4. 4No ordering at all; it performs an ordinary non-atomic access unless told otherwise.

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle