Question d’entretien chez Qualcomm

Explain deadlock. How do we avoid deadlock?