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