IBM Interview Question

What is deadloack and how to you avoid deadloack