Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 2 : If one user-level thread makes a blocking system call, all threads of that process block / यदि एक यूज़र-लेवल थ्रेड ब्लॉकिंग सिस्टम कॉल करता है, तो उस प्रोसेस के सभी थ्रेड ब्लॉक हो जाते हैं

Advertisement

Detailed Solution

सही उत्तर If one user-level thread makes a blocking system call, all threads of that process block / यदि एक यूज़र-लेवल थ्रेड ब्लॉकिंग सिस्टम कॉल करता है, तो उस प्रोसेस के सभी थ्रेड ब्लॉक हो जाते हैं है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

Which of the following is TRUE about user-level threads? / यूज़र-लेवल थ्रेड्स के बारे में निम्नलिखित में से कौन-सा सत्य है?

1.
The kernel is aware of each individual thread and schedules them separately / कर्नेल प्रत्येक थ्रेड से अवगत होता है और उन्हें अलग-अलग शेड्यूल करता है
2.
If one user-level thread makes a blocking system call, all threads of that process block / यदि एक यूज़र-लेवल थ्रेड ब्लॉकिंग सिस्टम कॉल करता है, तो उस प्रोसेस के सभी थ्रेड ब्लॉक हो जाते हैं
3.
Each user-level thread runs in its own separate address space / प्रत्येक यूज़र-लेवल थ्रेड अपने अलग एड्रेस स्पेस में चलता है
4.
Switching between user-level threads requires a trap into the kernel / यूज़र-लेवल थ्रेड्स के बीच स्विचिंग के लिए कर्नेल में ट्रैप आवश्यक है

Correct Answer: If one user-level thread makes a blocking system call, all threads of that process block / यदि एक यूज़र-लेवल थ्रेड ब्लॉकिंग सिस्टम कॉल करता है, तो उस प्रोसेस के सभी थ्रेड ब्लॉक हो जाते हैं

With user-level threads the kernel sees only the process, so a blocking system call blocks the entire process and every thread in it. Options (a), (c) and (d) describe kernel-level threads or processes. / यूज़र-लेवल थ्रेड्स में कर्नेल केवल प्रोसेस को देखता है, अतः ब्लॉकिंग सिस्टम कॉल पूरे प्रोसेस और उसके सभी थ्रेड्स को ब्लॉक कर देता है। विकल्प (a), (c) और (d) कर्नेल-लेवल थ्रेड्स या प्रोसेस का वर्णन करते हैं।

Downloaded from PrepSnap (prepsnap.in)