Pregunta de entrevista de Advanced Global Solution

How do you avoid deadlocks?