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