Question - Is it possible to have a deadlock involving only one process? Explain your answer.
Answer -
Deadlock with one process is not possible. Here is the explanation.
A deadlock situation can arise if the following four conditions hold simultaneously in a system.
- Mutual Exclusion.
- Hold and Wait.
- No Preemption.
- Circular-wait.
It is not possible to have circular wait with only one process, thus failing a necessary condition for Circular wait. There is no second process to form a circle with the first one. So it is not possible to have a deadlock involving only one process.