Q24
NAT1 markA keyboard connected to a computer is used at a rate of keystroke per second. The computer system polls the keyboard every (milli seconds) to check for a keystroke and consumes (micro seconds) for each poll. If it is determined after polling that a key has been pressed, the system consumes an additional 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 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)
Loading…