If someone can give me the detailed answers of the following questions regarding the transaction execution given below I would be glad.
Questions:
1) When and why deadlock happens?
2) How it can be handled using wait-die protocol?
3) How it can be handled using wound-wait protocol?
T3 T4
---------------------------
lock-X(B) |
read(B) |
B := B - 50 |
write(B) |
| lock-S(A)
| read(A)
| lock-S(B)
lock-X(A) |
P.S I cannot delete those "/>", if someone can edit and delete them, I would be glad.
MOD EDIT: Removed; turn off emoticon support when this happens.
This post has been edited by JackOfAllTrades: 26 December 2012 - 06:41 AM

New Topic/Question
Reply



MultiQuote


|