NSEIT Interview Question

How will you avoid deadlock?