









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










1
CSC 4103 - Operating Systems Spring 2007
Louisiana State University February 15th, 2007
Lecture - IX
2
3
Requires that the system has some additional a priori information available.
4
7
8
Resource-Allocation Graph For Deadlock Avoidance
9
10
13
Request = request vector for process Pi. If Requesti [j] = k then process Pi wants k instances of resource type Rj.
14
Allocation Max Available A B C A B C A B C P 0 0 1 0 7 5 3 3 3 2 P 1 2 0 0 3 2 2 P 2 3 0 2 9 0 2 P 3 2 1 1 2 2 2 P 4 0 0 2 4 3 3
15
16
19
Resource-Allocation Graph and Wait-for Graph
Resource-Allocation Graph Corresponding wait-for graph
20
21
If no such i exists, go to step 4.
22
25
26
27
28
31
32
33
34