Deadlock occurs when processes are blocked waiting for resources held by other processes in a circular chain. There are four necessary conditions for deadlock: mutual exclusion, hold and wait, no preemption, and circular wait. Approaches to handle deadlock include prevention, avoidance, and detection/recovery. Prevention methods modify resource allocation to break one of the conditions, avoidance methods allocate resources in a way that avoids unsafe states that could lead to deadlock, and detection/recovery finds and resolves deadlocks after they occur.