It's a deadlock because two threads are each waiting for the other.