A deadlock is a situation where two threads are waiting for each other, for whatever reasons, and the reasons of both threads depend on each other. The following figure will explain what deadlock means:
Clearly, both threads (people with guns) need the other thread's resource in order to proceed. So, nobody proceeds.