Computer AwarenessHardIBPS SO IT · IBPS PO Mains

A user program needs to read a file from disk, which only the operating system may do. How does it get the OS to do this?

  1. A. By making a system call, which switches the CPU into kernel mode
  2. B. By writing directly to the disk controller's registers
  3. C. By calling the BIOS from user mode
  4. D. By raising its own process priority

Correct answer: A. By making a system call, which switches the CPU into kernel mode

Protected operations run in kernel mode; a user program requests them through a system call (trap). Direct hardware access from user mode is blocked by the OS.

हिंदी में

किसी उपयोगकर्ता प्रोग्राम को डिस्क से फ़ाइल पढ़नी है, जो केवल ऑपरेटिंग सिस्टम कर सकता है। वह OS से यह कैसे करवाता है?

  1. A. सिस्टम कॉल करके, जो CPU को कर्नेल मोड में ले जाता है
  2. B. डिस्क कंट्रोलर के रजिस्टरों में सीधे लिखकर
  3. C. यूज़र मोड से BIOS को कॉल करके
  4. D. अपनी प्रक्रिया प्राथमिकता बढ़ाकर

उत्तर: A. संरक्षित संक्रियाएँ कर्नेल मोड में चलती हैं; उपयोगकर्ता प्रोग्राम उन्हें सिस्टम कॉल (ट्रैप) के माध्यम से माँगता है। यूज़र मोड से सीधी हार्डवेयर पहुँच को OS रोक देता है।

More Computer Awareness questions

Exams that ask this topic