Monday, March 10, 2008

Deadlock!

A deadlock occurs when two or more tasks permanently block each other by each task having a lock on a resource which the other tasks are trying to lock. In a deadlock situation, both transactions in the deadlock will wait forever unless the deadlock is broken by an external process – in a standard blocking scenario, the blocked task will simply wait until the blocking task releases the conflicting lock scenario.

1 comment:

Ayaz said...

In deadlock case, there should be two or more processes and atleast two resources. If there is one resource and process wait infinitely then it is starvation not the deadlock.