Pergunta de entrevista da empresa Critical Manufacturing

What is a deadlock and how does it happen?