In concurrent programming , a deadlock is a situation in which two or more competing actions are each waiting for the other to finish , and thus neither ever does .
A deadlock is a situation wherein two or more competing actions are waiting for the other to finish . As a consequence , neither ever does .