Pregunta de entrevista de Electronic Arts

How would you prevent deadlock?