Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 10
Two threads lock mutexes A and B in opposite orders. What can happen, and what is the standard fix?
A
Poisoning; call into_inner
B
Data race; use atomics
C
Nothing; Rust prevents it
D
Deadlock; always acquire locks in a consistent global order (or use try_lock with backoff)