How are system calls invoked?

2021

How are system calls invoked?

  1. A.

    By a privileged instruction

  2. B.

    Through a hardware interrupt

  3. C.

    Through a software interrupt

  4. D.

    Through polling

  5. E.

    Question not attempted

Attempted by 843 students.

Show answer & explanation

Correct answer: C

System calls are invoked by a software interrupt, which triggers a switch from user mode to kernel mode. This allows the operating system to execute privileged operations on behalf of the user program. The software interrupt is typically generated using a specific instruction (like int 0x80 on x86) that transfers control to the kernel. The kernel then handles the request and returns control to the user program.

हिन्दी उत्तर:

सिस्टम कॉल्स को सॉफ्टवेयर इंटरप्ट के माध्यम से बुलाया जाता है, जो यूजर मोड से कर्नेल मोड में स्विच करता है। इससे ऑपरेटिंग सिस्टम यूजर प्रोग्राम के लिए प्राइविलेज्ड ऑपरेशन कर सकता है। सॉफ्टवेयर इंटरप्ट को आमतौर पर एक विशिष्ट निर्देश (जैसे x86 पर int 0x80) का उपयोग करके उत्पन्न किया जाता है जो कर्नेल को नियंत्रण सौंपता है। कर्नेल तब अनुरोध को संभालता है और नियंत्रण यूजर प्रोग्राम को वापस कर देता है।

Explore the full course: Up Lt Grade Assistant Teacher 2025