Database problem concurrency

2018-06-13  本文已影响0人  KevinWu12

Implementation of Atomic operations

  1. Dekker's Algorithm
  1. Spin- Lock

Deadlock

In deadlock situation, each member of the deadlock processes is waiting for another member to release the resources it wants

  1. Have enough resources so that no waiting occurs
  2. Linearly order the resources and request of resources should follow this order.
  3. Periodically check the resource dependency graph for cycles
  4. Allow a transaction to wait ofr certain maximum time on a lock and force it to rollback

Probability of Deadlocks

上一篇 下一篇

猜你喜欢

热点阅读