Question d’entretien chez Qualcomm

Explain a deadlock and design a simple solution for the same.