Pergunta de entrevista da empresa D. E. Shaw India

What is deadlock? and how to prevent deadlock?