Electronic Arts interview question

How would you prevent deadlock?