Pergunta de entrevista da empresa Google

Explain deadlock and how to prevent it