Skip to main content


Showing posts with the label Livelock

Deadlock and Livelock

Deadlock:  Deadlock is a situation when two processes, each having a lock on one resource and attempt to acquire a lock on the other's resource. In this case, each process would have to wait indefinitely until one of them releases the lock on the holding resource. Livelock:  Livelock is a situation, where in a request for an exclusive lock  is repeatedly denied because of series of overlapping shared  locks keeps interfering. A  livelock also occurs when read transactions monopolize a resource(file/page/memory location), forcing a write transaction to wait indefinitely.