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 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 denote the fraction of a second spent in servicing the interrupt and processing a keystroke.
The ratio is ________. (Rounded off to one decimal place)
GATE CS 2023 (Forenoon) — Question 34
Computer Organization and Architecture (COA)I/O Interfaces (Interrupts & DMA Control Modes)NAT1 markHard
A GATE question every morning
One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.
More on I/O Interfaces (Interrupts & DMA Control Modes)
- GATE CS 2026 (Afternoon) · Q18Consider the following two statements about interrupt handling mechanisms in a CPU. S1: In non-vectored interrupt mechanism, it usually tak…
- GATE CS 2025 (Forenoon) · Q11Suppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can…
- GATE CS 2024 (Forenoon) · Q15Which one of the following statements is FALSE?
- GATE CS 2024 (Afternoon) · Q11Consider a computer with a 4 MHz processor. Its DMA controller can transfer 8 bytes in 1 cycle from a device to main memory through cycle s…
- GATE CS 2022 (Forenoon) · Q17Which one of the following facilitates transfer of bulk data from hard disk to main memory with the highest throughput?
- GATE CS 2021 (Afternoon) · Q30Consider a computer system with DMA support. The DMA module is transferring one 8-bit character in one CPU cycle from a device to memory th…

