All challenges
Multiple ChoiceIntermediate 45s

Sequentially consistent fences

In the C++ memory model, std::atomic_thread_fence(std::memory_order_seq_cst) provides:
Options
  1. 1a full sequentially consistent fence participating in the global SC order
  2. 2an acquire-only barrier that orders later loads but never orders stores
  3. 3device-level synchronization equivalent to volatile, flushing to memory
  4. 4no ordering guarantees, only per-operation atomicity without happens-before

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