Smarsh Interview Question

What is a deadlock and how you can rectify it?