Electronic Arts Interview Question

How would you prevent deadlock?