Computer AwarenessHardIBPS SO IT Officer

In the many-to-one threading model (many user-level threads mapped to one kernel thread), what happens when one thread makes a blocking system call?

  1. A. Only that thread blocks and the others keep running
  2. B. The kernel creates a new kernel thread for the rest
  3. C. The blocking call is converted into a non-blocking one
  4. D. The whole process blocks until the call returns

Correct answer: D. The whole process blocks until the call returns

The kernel sees only one schedulable thread, so if it blocks, every user-level thread in the process stops. One-to-one models avoid this.

हिंदी में

मैनी-टू-वन थ्रेडिंग मॉडल में (कई यूज़र-स्तरीय थ्रेड एक कर्नेल थ्रेड से मैप्ड), जब कोई थ्रेड ब्लॉकिंग सिस्टम कॉल करता है तो क्या होता है?

  1. A. केवल वही थ्रेड ब्लॉक होता है और अन्य चलते रहते हैं
  2. B. कर्नेल शेष के लिए नया कर्नेल थ्रेड बनाता है
  3. C. ब्लॉकिंग कॉल को नॉन-ब्लॉकिंग में बदल दिया जाता है
  4. D. कॉल लौटने तक पूरी प्रक्रिया ब्लॉक हो जाती है

उत्तर: D. कर्नेल को केवल एक शेड्यूल-योग्य थ्रेड दिखता है, इसलिए वह ब्लॉक हो तो प्रक्रिया के सभी यूज़र-स्तरीय थ्रेड रुक जाते हैं। वन-टू-वन मॉडल इससे बचते हैं।

More Computer Awareness questions

Exams that ask this topic