Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 20
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
It's required to avoid poisoning
C
Loops make it faster
D
wait() never returns otherwise