All Exams Test series for 1 year @ ₹349 only
Question

Which of the following is the correct sequence with regard to service routine?

A. Save contents of processor registers

B. Turn the interrupt facility on

C. Service the device whose flag is set

D. Check which flag is set

E. Restore contents of processor registers

Choose the correct answer from the options given below:

This question was previously asked in
UGC NET 2024 Management Question Paper (02-Sep-2024) (Shift 2)
The correct answer is

A, D, C, E, B

When an interrupt is acknowledged, control passes to the interrupt service routine. Morris Mano (Computer System Architecture) lists the steps the routine performs; the processor state must be preserved first and interrupts re-enabled only after the state has been restored.

Step 1 — Save contents of processor registers (A), so the interrupted program can later resume unchanged.

Step 2 — Check which flag is set (D), to identify the device that requested service.

Step 3 — Service the device whose flag is set (C).

Step 4 — Restore contents of processor registers (E).

Step 5 — Turn the interrupt facility on (B), then return to the interrupted program.

The order is A, D, C, E, B. A, B, C, D, E enables interrupts before servicing and checks flags after servicing; D, B, C, A, E and D, C, B, E, A both start polling flags before saving registers, which would corrupt the interrupted program's state.

A, D, C, E, B option is correct.

Was this answer helpful?

Similar Questions

  1. A CPU handles interrupt by executing interrupt service subroutine __________.


Important Questions from Program Interrupt

  1. Suppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can interrupt the processor asynchronously. The processor needs to execute the interrupt service routine (ISR) to serve this interrupt. The following steps (not necessarily in order) are taken by the processor when the interrupt arrives:

    (i) The processor saves the content of the program counter.
    (ii) The program counter is loaded with the start address of the ISR.
    (iii) The processor finishes the present instruction.

    Which ONE of the following is the CORRECT sequence of steps?

  2. The register in the 8085A that is used to keep track of the memory address of the next op-code to be run in the program is the-

  3. Disabling an interrupt is known as ______.

  4. Which is not true about an interrupt

  5. Match List-I with List-II

    List I

    List II

    a.

    Micro operation

    i.

    Specify micro operations

    b.

    Micro programmed control unit

    ii.

    Improve CPU utilization

    c.

    Interrupts

    iii.

    Control Memory

    d.

    Micro instruction

    iv.

    Elementary operation performed on data stored in registers

    Choose the correct option from those given below:

Need Expert Advice?
Upcoming Exams
TSTET
November 16, 2026
CTET
December 12, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) 2026 Mock Test Series
796 Tests 2 Tests Free
110 Attempts
4.4(41)
English
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App