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