Computer Sciences > GATE 2023 > Operating Systems
A keyboard connected to a computer is used at a rate of 1 keystroke per second. The computer system polls the keyboard every 10 ms (milli seconds) to check for a keystroke and consumes 100 μs (micro seconds) for each poll. If it is determined after polling that a key has been pressed, the system consumes an additional 200 μs to process the keystroke. Let T1 denote the fraction of a second spent in polling and processing a keystroke. In an alternative implementation, the system uses interrupts instead of polling. An interrupt is raised for every keystroke. It takes a total of 1 ms for servicing an interrupt and processing a keystroke. Let T2 denote the fraction of a second spent in servicing the interrupt and processing a keystroke. The ratio T1/T2 is _______. (Rounded off to one decimal place)

Correct : 1.2

Similar Questions

Consider a process P running on a CPU. Which one or more of the following events will always trigger a context switch by the OS that results in process P moving...
#913 MSQ
Which one or more of the following need to be saved on a context switch from one thread (T1) of a process to another thread (T2) of the same process?
#959 MSQ
Which one or more of the following options guarantee that a computer system will transition from user mode to kernel mode?
#960 MSQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......