21.The processes are in deadlock when?
Explanation
A deadlock occurs when each process holds a resource and waits for a resource held by the other, e.g. the first process locks resource A while the second locks resource B and each waits for the other, so neither can proceed.