in Operating System edited by
12,234 views
28 votes
28 votes

Which of the following devices should get higher priority in assigning interrupts?

  1. Hard disk
  2. Printer
  3. Keyboard
  4. Floppy disk
in Operating System edited by
12.2k views

4 Comments

How can we understand priority among those?
1
1
among these options  can say that keyboard has the maximum priority. but if options are different , how we can comment?
1
1
0
0
In peripherals, priority is given based on the speed of the device. Higher the speed, higher the priority. Hard disk has the highest speed(MBps) among the given options and thus has the highest priority. Whereas, keyboard is the slowest one because we humans write so slow(like 1-3 word per second) when compared to CPU, and thus keyboard has lowest priority. You may have noticed sometimes that when you are copying/moving a large file on to your hard disk from other device, like pen drive, and then you try to type something using keyboard the typed words are shown with some lag. This is because of the priority being given to hard disk right now.
30
30

4 Answers

37 votes
37 votes
Best answer

It should be a Hard disk. I don't think there is a rule like that. But hard disk makes sense compared to others here. 

http://www.ibm1130.net/functional/IOInterrupts.html

selected by
by

4 Comments

What if I press “ctrl +c” command to terminate some process or might be I gave “sudo rm -rf /” and suddenly press ctrl + c, I believe keyboard should be given more priority.

What do you say?
1
1
sir you roast students lol
0
0
That time lapse is sufficient to handle the interrupt . It is not in sec it is in msec
0
0
22 votes
22 votes

Answer: (A)

Devices with high speed get more priority in assigning interrupts.

Here is the explanation taken from Morris Mano:

3 votes
3 votes
Hard disk should be given higher priority as all user programs and OS are stored in here.

3 Comments

No doubt, it's (C) keyboard has the highest priority of them all.

 

It's a rule. From highest to lowest.

THERMAL MONITOR -> LOCK -> KEYBOARD -> SERIAL PORT -> HDD -> FLOPPY DISK -> PRINTER
1
1
@krishna

Please provide references me too think it should be keyboard.
0
0
Highest priority is given to the device which has high probability of data loss.
0
0
2 votes
2 votes

Devices with high speed transfer such as Hard disk (according to given options it has high speed among all) are given high priority, and slow devices such as keyboard receive low priority.

So, clearly Hard disk is answer. Option (A).

Check the similar one:

https://gateoverflow.in/2113/gate2011-11

Answer:

Related questions