Advertisement
ShiningDrake

Untitled

Apr 16th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. 25. An operating system has processes P1, P2, P3, and P4 and resources R1 (one resource), R2 (one resource), R3 (two resources) and R4 (three resources). The notation (1,1),(2,2),(1,2) means that P1 requests R1, then P2 request R2, then P1 requests R2. Note that the first two requests produce allocation edges on the resource allocation graph, but the third request proeduces a request edge on the graph because R2 is already allocated to P2.
  2.  
  3. Draw the resource allocation graph after each sequence of requests. State whether the graph contains a cycle. If it does, state whether it is a deadlock cycle.
  4.  
  5. c) (1,1), (2,1), (3,1), (4,1)
  6. d) (3,3), (4,3), (2,2), (3,2), (2,3)
  7. f) (2,1), (1,2), (2,3), (3,3), (2,2), (1,3)
  8. g) (2,1), (1,2), (2,3), (3,3), (2,2), (1,3), (3,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement