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?
- A. Only that thread blocks and the others keep running
- B. The kernel creates a new kernel thread for the rest
- C. The blocking call is converted into a non-blocking one
- 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.
हिंदी में
मैनी-टू-वन थ्रेडिंग मॉडल में (कई यूज़र-स्तरीय थ्रेड एक कर्नेल थ्रेड से मैप्ड), जब कोई थ्रेड ब्लॉकिंग सिस्टम कॉल करता है तो क्या होता है?
- A. केवल वही थ्रेड ब्लॉक होता है और अन्य चलते रहते हैं
- B. कर्नेल शेष के लिए नया कर्नेल थ्रेड बनाता है
- C. ब्लॉकिंग कॉल को नॉन-ब्लॉकिंग में बदल दिया जाता है
- D. कॉल लौटने तक पूरी प्रक्रिया ब्लॉक हो जाती है
उत्तर: D. कर्नेल को केवल एक शेड्यूल-योग्य थ्रेड दिखता है, इसलिए वह ब्लॉक हो तो प्रक्रिया के सभी यूज़र-स्तरीय थ्रेड रुक जाते हैं। वन-टू-वन मॉडल इससे बचते हैं।
More Computer Awareness questions
- The main purpose of multiprogramming in an operating system is to:
- Which file-allocation method allows fast direct access to any block but suffers from external fragmentation?
- Which Windows file system supports file-level permissions, journaling for crash recovery and single files larger than 4 GB?
- In a UNIX-like file system, a file's inode stores all of the following EXCEPT the file's:
- A file report.txt has one hard link and one symbolic link pointing to it. The original name report.txt is then deleted. What happens?
- In Linux, the command chmod 754 file gives the file which permission string?