Pergunta de entrevista da empresa Smarsh

What is a deadlock and how you can rectify it?