Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 272
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
Nothing; Rust prevents it
C
Deadlock; always acquire locks in a consistent global order (or use try_lock with backoff)
D
Data race; use atomics