Deadlocks

Your answer
Answer & solution
Official answer: D
1. Consider a single thread and one initially free non-reentrant lock L. The thread acquires L successfully.
2. Before releasing L, let the same thread request L again. The non-reentrancy rule blocks it because L is already held, even though the holder is itself.
3. Only this blocked thread could release L, so it cannot progress: self-deadlock. At least one thread and one lock are needed to discuss this failure, and this example achieves both minima. Answer D.