Learn Wound-Wait & Wait-Die schemes for Deadlock Handling here: https://youtu.be/FzhbOG40ZH8
For wound-wait deadlock prevention scheme:
- At t3: g
- At t4: g
- At t5: g
- At t6: b
- At t7: b
- At t8: -
For wait-die deadlock prevention scheme:
- At t3: b
- At t4: g
- At t5: g
- At t6: a
- At t7: a
- At t8: g
Watch this: https://youtu.be/FzhbOG40ZH8
Explanation for time $t_3:$
At time $t_3,$ the request is being made by transaction $T_1$, not be $T_2.$ Request by $T_1$ goes to Lock Manager (LM), which aborts $T_2$ and grants request of $T_1.$ So, at $t_3, $ the request that is made, is granted.
Note that for each "request" we need to determine whether that request is granted or not. The transaction making that request is aborted or not, blocked or not.
Note that: Block == Wait ; So, blocked state == waiting state. Blocked & Abort are different.