Multiple ChoiceHard 45s
acquire-release pairing
For a correct release/acquire handoff, a store with `memory_order_release` in thread A must be paired with:
Options
- 1Any relaxed load of that flag somewhere in thread B, regardless of whether it sees the store.
- 2An acquire store in thread B on the same flag, paired with the release store in thread A.
- 3A seq_cst fence in thread B that is placed before the flag but never actually read.
- 4A load with `memory_order_acquire` in thread B observing that store, establishing happens-before for prior A-side writes.
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.