The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+11 votes

A computer handles several interrupt sources of which of 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 if 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?
  1. Interrupt from Hard Disk
  2. Interrupt from Mouse
  3. Interrupt from Keyboard
  4. Interrupt from CPU temperature sensor
asked in Operating System by Veteran (115k points)
edited by | 2.4k views
Is D the right answer? How to check priority among different interrupts?

1 Answer

+39 votes
Best answer

Answer should be (D) Higher priority interrupt levels are assigned to requests which, if delayed or interrupted,could have serious consequences. Devices with high speed transfer such as magnetic disks are given high priority, and slow devices such as keyboard receive low priority. We know that mouse pointer movements are more frequent than keyboard ticks. So its obvious that its data transfer rate is higher than keyboard. Delaying a CPU temperature sensor could have serious consequences, overheat can damage CPU circuitry. From the above information we can conclude that priorities are-

CPU temperature sensor > Hard Disk > Mouse > Keyboard

answered by Junior (697 points)
edited by

When mouse stops working(may be PC hanged because of load), you might open taskmanager by (Ctrl+Shift+Esc) or (Alt+Ctrl+Del). This clearly shows that keyboard has higher priority than mouse.

Am I right?


Dhaval Radadiya

and what if keyboard stop working.. ? then u can open task manager by this case mouse has highest priority then...

This is some kind of stupid gate question :p

Interrupts from I/O are handled by APIC. The priorities are programmable and we can't say one I/O(such as keyboard or mouse) gets priority over the other. I have also read that linux kernel does not prioritize APIC interrupts in soft real-time systems. Here is a geeky discussion on APIC.

Who wins Mouse vs Keyboard?

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
47,886 questions
52,256 answers
67,672 users