Pergunta de entrevista da empresa Spartez

What is a deadlock, and when can happen?