Computer AwarenessVery hardSSC CGL Tier 2 · IBPS PO Mains · IBPS/SBI

An operating system makes every process request all the resources it will ever need before it begins executing. Which of the four necessary conditions for deadlock does this policy eliminate?

  1. A. Circular wait
  2. B. No pre-emption
  3. C. Hold and wait
  4. D. Mutual exclusion

Correct answer: C. Hold and wait

If a process obtains everything at the start, it never holds some resources while waiting for others, so hold and wait cannot occur. Circular wait is prevented instead by imposing a global ordering on resource requests.

हिंदी में

एक ऑपरेटिंग सिस्टम हर प्रक्रिया से कहता है कि निष्पादन आरंभ करने से पहले वह अपने सभी आवश्यक संसाधन माँग ले। यह नीति गतिरोध की चार आवश्यक शर्तों में से किसे समाप्त करती है?

  1. A. चक्रीय प्रतीक्षा (Circular wait)
  2. B. पूर्व-अधिकार का अभाव (No pre-emption)
  3. C. पकड़ कर प्रतीक्षा (Hold and wait)
  4. D. परस्पर अपवर्जन (Mutual exclusion)

उत्तर: C. यदि प्रक्रिया आरंभ में ही सब कुछ पा लेती है, तो वह कुछ संसाधन पकड़कर दूसरों की प्रतीक्षा नहीं करती, इसलिए पकड़ कर प्रतीक्षा नहीं हो सकती। चक्रीय प्रतीक्षा को संसाधन-अनुरोधों पर वैश्विक क्रम थोपकर रोका जाता है।

More Computer Awareness questions

Exams that ask this topic