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