A deadlock is a situation wherein two or more competing actions are waiting for the other to finish .
A deadlock is a situation where in two or more competing actions are each waiting for the other to finish , and thus neither ever does .