Example (Cont.) Available Resources of A, B and C are 3, 3, and 2. Now we check if each type of resource request is available for each process. So, among all the processes, process 2 follows the condition. For Process P2: Need <= Available 1, 2, 2 <= 3, 3, 2; condition TRUE So, Available Resources = 3,3,2 – 1,2,2 = 2,1,2 After the process 2 is complete, New available resources: Available + Allocation(With the allocation resources from start) = 2,1,2 + 1,2,2 + 2, 0,0 = 5,3,2 Now, in the same way we will look for other processed which satisfies this condition. For Process P4: Need <= Available 0,1,1<= 5,3,2condition; TRUE So, Available Resources = 5,3,2 – 0,1,1 = 5,2,1 After the process 4 is complete, New available resources: Available + Allocation(With the allocation resources from start) = 5,2,1 + 0,1,1 + 2, 1,1 = 7,4,3 P2 1 2 2 NEED P4 1 1 NEED