Pergunta de entrevista da empresa OpenText

steps need to take to avoid deadlock ?