enter image description here

Is it in in a deadlocked state?

In this graph, there is a deadlock initially I think. Since P1 is holding R1 and waiting for R2; P2 is holding R2 and waiting for R1 and R3; P3 is holding R3 and waiting for R1.

Or P1 and P2 are also in a cycle. So it is in a deadlocked state. Am I correct to claim that?

If one more instance of resource R1 is added, will it be in a deadlocked state? Explain why? Need to show the graph reduction steps to justify your answer

I think it can if P3 takes R1 so that it releases R1 and R3. But if P2 takes the newly added R1, it is still waiting for an R3.

In this case, should I say it is still in a deadlocked state? Also, how to do graph reduction? Any help is appreciated.

  • $\begingroup$ I don't think the question as stated has a definite answer. The semantics of your notation aren't clear. Explain the semantics (the same as in this question?) or if you can't, use a notation with a clearly defined execution semantics, such as Petri nets. $\endgroup$ Dec 8 '20 at 9:59
  • $\begingroup$ Thank you for your advice. Should I ask a new question? $\endgroup$
    – user129260
    Dec 8 '20 at 11:42
  • 1
    $\begingroup$ I think it's better to clarify this one. Tell us where you got this example and notation. $\endgroup$ Dec 8 '20 at 16:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.