Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 40
Why should Condvar::wait be called in a loop checking the condition?
A
Spurious wakeups can occur, and another thread may have changed the state before this thread reacquired the lock
B
Loops make it faster
C
wait() never returns otherwise
D
It's required to avoid poisoning