Multiple ChoiceIntermediate 45s
Sequentially consistent fences
In the C++ memory model, std::atomic_thread_fence(std::memory_order_seq_cst) provides:
Options
- 1a full sequentially consistent fence participating in the global SC order
- 2an acquire-only barrier that orders later loads but never orders stores
- 3device-level synchronization equivalent to volatile, flushing to memory
- 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.