When two threads are waiting each other and can’t precede the program is said to be deadlock.