Pergunta de entrevista da empresa Ericsson

what is a Deadlock and how do you prevent it ?