Pergunta de entrevista da empresa Global IT Experts

What is a deadlock and how can you prevent it?