Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 40
Why is compare_exchange_weak usually called in a loop?
A
It doesn't return the current value
B
It may fail spuriously even when the value matches, which is cheaper on some architectures (LL/SC)
C
It requires SeqCst
D
It always fails the first time