57.2k views
1 vote
Is it possible to have a deadlock involving only oneprocess? Explain your answer.

User Googme
by
4.5k points

1 Answer

4 votes

Answer:

Hi!

It is not possible to have a deadlock involving only one process.

Step-by-step explanation:

Deadlock is only possible if there are multiple processes trying to access the same shared resources. Another way to see it is if you have shared resources only can be a deadlock if multiple processes attempt to use it.

With only one process, you can use shared resources without the risk of fall into deadlock, but you don't have concurrence either.