Interrupt

Question 1

A computer handles several interrupt sources of which the following are relevant for this question.

    . Interrupt from CPU temperature sensor (raises interrupt if CPU temperature is too high)
    . Interrupt from Mouse(raises interrupt if the mouse is moved or a button is pressed)
    . Interrupt from Keyboard(raises interrupt when a key is pressed or released)
    . Interrupt from Hard Disk(raises interrupt when a disk read is completed)

Which one of these will be handled at the HIGHEST priority?

A
Interrupt from Hard Dist
B
Interrupt from Mouse
C
Interrupt from Keyboard
D
Interrupt from CPU temperature sensor
Question 1 Explanation: 
The interrupts of higher priority are assigned to requests which, if delayed, can cause serious problems. High speed transfer device such as magnetic disks are given higher priority, and slow devices such as keyboard, mouse receive low priority. Also delaying a CPU temperature sensor can cause serious problems like can damage CPU.
Therefore, we can say that priorities are,
CPU temperature sensor > Hard disk > Mouse > Keyboard.
Question 2

A CPU generally handles an interrupt by executing an interrupt service routine

A
As soon as an interrupt is raised.
B
By checking the interrupt register at the end of fetch cycle.
C
By checking the interrupt register after finishing the execution of the current instruction.
D
By checking the interrupt register at fixed time intervals.
Question 2 Explanation: 
As soon as an interrupt is raised the corresponding register is set. But CPU acts on it only after execution of its current instruction. This is followed to ensure integrity of instructions.
Question 3

Which one of the following is true for a CPU having a single interrupt request line and a single interrupt grant line?

A
Neither vectored interrupt nor multiple interrupting devices are possible.
B
Vectored interrupts are not possible but multiple interrupting devices are possible.
C
Vectored interrupts and multiple interrupting devices are both possible.
D
Vectored interrupt is possible but multiple interrupting devices are not possible.
Question 3 Explanation: 
We can use one Interrupt line for all the devices connected.
Also for vectored Interrupts it is always possible if we implement in daisy chain mechanism.
Question 4

A device with data transfer rate 10 KB/sec is connected to a CPU. Data is transferred byte-wise. Let the interrupt overhead be 4 μsec. The byte transfer time between the device interfaces register and CPU or memory is negligible. What is the minimum performance gain of operating the device under interrupt mode over operating it under program-controlled mode?

A
15
B
25
C
35
D
45
Question 4 Explanation: 
Data transfer rate = 10 KB/sec
In 1 sec it transfer 10 KB of data = 10 × 103 B = 104B
Data interrupt overhead = 4μsec = 4×10-6 sec
Transferring 10KB overhead = 4×10-6×104sec
Performance gain = 1/(4×10-6×104) = 102/4 = 25
Question 5

A processor needs software interrupt to

A
test the interrupt system of the processor
B
implement co-routines
C
obtain system services which need execution of privileged instructions
D
return from subroutine
Question 5 Explanation: 
To execute privileged instructions, system services can be obtained using software interrupt.
There are 5 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access