difference between deadlock avoidance and detection
Simply to put
Deadlock avoidance: you employ some methods to avoid the deadlock ,but prevention is more restrictive than avoidance.

Deadlock detection: Here only the detection only takes place whether the current state is in deadlock or not.