Question: Task 1. The clock frequency of the CPU is 100 MHz. A keyboard is connected to the computer. In average, 10 keys are pressed in

Task 1. The clock frequency of the CPU is 100 MHz. A keyboard is connected to the computer. In average, 10 keys are pressed in a second. Theoretically, two key presses can follow each other in 50 ms, key presses closer than this can not be distinguished by the keyboard. 500 clock cycles are necessary to obtain the status of the keyboard. The interrupt processing needs additional 100 clock cycles (a) How many times do we need to poll the keyboard to not to miss any events? (b) What is the (relative) load of the CPU devoted to the keyboard when the key press events are handled by polling? c) What is the (relative) load of the CPU devoted to the keyboard when the key press events are handled by interrupts
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
