The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+10 votes
2k views

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 (107k points)
edited by | 2k views
0
Is D the right answer? How to check priority among different interrupts?

1 Answer

+38 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
+5

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?

+2

Dhaval Radadiya

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

+2
This is some kind of stupid gate question :p
+1

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. https://arstechnica.com/civis/viewtopic.php?f=8&t=375414

Answer:

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

42,699 questions
48,662 answers
156,599 comments
63,970 users