At=3,available R1=1,but P1 needs 2 R1.
so,P1 is blocked.
At t=5, 3R1 are released,but previously blocked P1 takes 2 R1
to unblock it.so available R1=1.
At t=8, P2 finishes,so it will releases what it grabbed.
From the process P2 column in question we can
see it releases 1 R1,1R3 and 1R4,but at the same time P1 wants
2 R4 but available is just 1.so P1 is blocked.P3 wants 1 R3 ,it can
be fulfilled.
At t=9,P3 finishes ,it releases 1 R2,1 R3,1 R4.So now previously blocked P1
can be unblocked
At t=10,All finishes.
So at last none of the processes are blocked.
So,All processes will finish without deadlock.