GATEverse
← GATE CSE 2023

Q24

NAT1 mark

A keyboard connected to a computer is used at a rate of 11 keystroke per second. The computer system polls the keyboard every 10 ms10 \mathrm{~ms} (milli seconds) to check for a keystroke and consumes 100  μs100\; \mu \mathrm{s} (micro seconds) for each poll. If it is determined after polling that a key has been pressed, the system consumes an additional 200  μs200\; \mu \mathrm{s} to process the keystroke. Let T1T_{1} 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 ms1 \mathrm{~ms} for servicing an interrupt and processing a keystroke. Let T2T_{2} denote the fraction of a second spent in servicing the interrupt and processing a keystroke. The ratio T1T2\dfrac{T_{1}}{T_{2}} is _____________. (Rounded off to one decimal place)

Sign in to save attempts.

Loading…