Pergunta de entrevista da empresa Electronic Arts

How would you prevent deadlock?