Respuesta :
Dead lock is possible in Bank Transactions
Explanation:
Let us understand the term "Dead lock"
A deadlock is a situation where whole set of process is locked, since each of the process is waiting or holding the resource of another process. Each process will be interdependent and waiting for the same resource.
Deadlock is possible during bank transaction in the following situation:
A & B are two accounts where A tries to transfer funds to B and B tries to transfer fund to A.
When both tries to transfer funds at the same time, deadlock occurs.
A deadlock can be avoided by any one of the four methods.
They are: Mutual exclusion, No preemption, circular wait, hold and wait.
A deadlock refers to a situation in which two computer program that shares the same resource/data are preventing each other from accessing the resource/data , resulting in both programs ceasing to function.
Explanation:
A deadlock refers to a situation in which the whole process is locked, since each of the process is waiting or holding the resource of another process. The two process are interdependent on each other and cannot function independently
An example of Deadlock occurring during a bank transaction is
Lets consider two bank accounts of customer X & Customer Y
Now if customer X tries to transfer funds to Customer Y or Y tries to transfer fund to X ,when these 2 process occur simultaneously at the same time a deadlock is said to have occur