This is because:
Early detection: It allows for immediate identification of potential deadlocks, preventing them from escalating.
Resource optimization: By detecting deadlocks early, the system can take corrective actions, such as process termination or resource preemption, to avoid system-wide issues.
Efficient resource utilization: Continuously monitoring resource requests helps in optimizing resource allocation and preventing deadlocks.
While checking at fixed intervals might be less computationally expensive, it increases the risk of missing deadlock conditions, especially if the interval is too long.
Therefore, checking for deadlock at every resource request offers the best balance between efficiency and deadlock prevention.
If you think there is any confusion in the given MCQs, you can comment below.
docmcqs.com is Pakistan's No.1 online platform for preparing for all types of exams including PPSC, FPSC, KPSC, SPSC, Ministry of Defence, and for one-paper MCQs. This includes Pedagogy MCQs, general knowledge MCQs, current affairs MCQs, and much more.