GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 1.12

Software interrupt for privileged services

Operating Systems · Processes, Threads & System Calls · Full GATE CSE 2001 paper

GATE 2001, Q1.12 1 mark · MCQ
Report issue

Processes, Threads & System Calls

Question 1.12, GATE 2001: What is the principal system purpose of a software interrupt: testing interrupts, implementing coroutines, requesting system services needing privileged instructions, or returning from a subroutine?
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: User-mode code cannot directly execute protected operations such as arbitrary device control. It must transfer control through an authorized entry point into the operating system.

Step 2: A software interrupt/trap provides that controlled transfer and lets the kernel execute the privileged instructions, so C. A normal subroutine return is not this transition, and coroutines can switch cooperatively without requiring a privileged trap. Testing interrupts is possible but is not their essential system-service purpose.

Original paper, page 2