Question: what is deadlock what are the necessary conditions for deadlock?
Answer: Necessary conditions A deadlock situation on a resource can arise if and only if all of the following conditions hold simultaneously in a system: ... Hold and wait or resource holding: a process is currently holding at least one resource and requesting additional resources which are being held by other processes.