Question: Draw a model like the one shown in Figure, for each of the following situations. Indicate whether or not there is deadlock in the situation.

Draw a model like the one shown in Figure, for each of the following situations. Indicate whether or not there is deadlock in the situation. Assume that there is only one unit of each resource type.

a. Process 1 is holding Resource 1 and requesting Resource 2; Process 2 is holding Resource 2 and requesting Resource 3; Process 3 is holding Resource 3 and requesting Resource 4; and Process 4 is holding Resource 4 and requesting Resource 1.

b. Process 1 is holding Resource 1 and requesting Resource 3; Process 2 is holding Resource 2 and requesting Resource 3; Process 3 is holding Resource 3 and requesting Resource 4; and Process 4 is holding Resource 4 and requesting Resource 2.

Process 2 Process 1 Process 3 Resource 3 Resource 1 Resource 2

Process 2 Process 1 Process 3 Resource 3 Resource 1 Resource 2 Process holds the resource Process requests the resource

Step by Step Solution

3.43 Rating (172 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Part A None of the processes can proceed because all of them are waiting for a ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

34-E-CE-OS (474).docx

120 KBs Word File

Students Have Also Explored These Related Computer Engineering Questions!