Question: what is the difference between deadlock prevention and deadlock avoidance?
Answer: The main difference between deadlock prevention and deadlock avoidance is that the deadlock prevention ensures that at least one of the necessary conditions to cause a deadlock will never occur, while deadlock avoidance ensures that the system will not enter an unsafe state.