Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started