For an effective operating system, when to check for deadlock?

  • A. a) every time a resource request is made at fixed time intervals
  • B. b) at fixed time intervals
  • C. c) every time a resource request is made
  • D. d) none of the mentioned
Correct Answer: A. a) every time a resource request is made at fixed time intervals
Checking for deadlock every time a resource request is made is the most effective approach.

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.

Follow us on WhatsApp

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.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top