Morgan Stanley Interview Question

What is a deadlock and explain in detail