Bankers Algorithm Example 1 Step3 : To Check if a request from process P1 arrives for (0,4,2,0), can the request be granted immediately Compare Given Allocation with Corresponding Need: For P1 (0,4,2,0)< (0,7,5,0) Compare Given Allocation with Corresponding Available: For P1 (0,4,2,0) <(1,5,2,0) So new Available= (1,5,2,0)-(0,4,2,0)=(1,1,0,0) And so new Allocation= (1,0,0,0)+(0,4,2,0)=(1,4,2,0) And so new need for P1=(0,7,5,0) – (0,4,2,0) =(0,3,3,0) Now replace the previous values of process P1 with new values: Process Allocation Max Available Need A B C D A B C D A B C D A B C D P0 1 2 1 2 1 1 P1 1 4 2 1 7 5 3 3 P2 1 3 5 4 2 3 5 6 1 2 P3 6 3 2 6 5 2 2 P4 1 4 6 5 6 6 4 2 Step 4: Now repeat Step1 t- Step 2 and find safe sequence.