Ask Question
16 December, 11:33

One condition for deadlocks is the circular-wait condition. One way to ensure that this condition never holds is to impose a total ordering of all resource types and to require that each process requests resources in increasing order of enumeration. Given an example of a bank transaction, is deadlock possible for this case

+5
Answers (2)
  1. 16 December, 11:52
    0
    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.
  2. 16 December, 11:59
    0
    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
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “One condition for deadlocks is the circular-wait condition. One way to ensure that this condition never holds is to impose a total ordering ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers