Question OS-SYNC-0076
HardWhat is a deadlock-free way to lock two mutexes A and B in several threads?
- A.
Always lock them in the same global order, such as A before B
- B.
Lock them in random order
- C.
Sign up free to see the answer and a step-by-step explanation.