What is a deadlock and what are its conditions?
A deadlock is a situation where two or more processes are unable to proceed because each is waiting for resources held by another. Four conditions for deadlock: Mutual Exclusion, Hold and Wait, No Preemption, and Circular Wait.