Math, asked by kamran8334, 1 year ago

Explain deadlock with example of money transaction

Answers

Answered by writersparadise
2

In bank, when you go to deposit in the bank, both the counters are open and there is a long queue of deposits.  You would have heard the counter person saying, system has got locked.  This is “deadlock” occurs.

If two persons are waiting for the same transaction, one is waiting to release and one is holding it, the transaction won’t get processed.  The only way to try again is to cancel the transactions. “A deadlock occurs if two transactions need exclusive use of the some resource that the other already holds.”

 

Answered by myrakincsem
0
Deadlock is the actually a type of  condition when two transaction have the need to use the resource which the other already holds.  In money transaction this is happen when one is waiting for the transaction while the other proceeds  this cause the deadly condition , this may result in the both transaction to timeout and ultimately fail.This way transaction don't proceeds thus in the end transactions have to cancel in order to proceeds again.
Similar questions