Question: 7. Consider the mechanisms implemented by real-time systems for keeping track of the passage of time and for managing real-time tasks. a) [10pts] What is

7. Consider the mechanisms implemented by real-time systems for keeping track of the passage of time and for managing real-time tasks. a) [10pts] What is the interval between clock-interrupts generated from a free-running binary-counter of size of 3 bits, which counts input pulses that arrive at the fixed rate of 0.8kHz ? b) [15pts] Considering the clock interrupt interval you found in (a). Assume the occurrence of the following sequence of events: 1. A clock interrupt happened. 2. The interrupt service routine (ISR) handled the occurred clock interrupt and updated the global variable of the day to 1667235600000 milliseconds (UTC time \& date of Mon Oct 312022 13:00:00). 3. The scheduler scheduled task T1 to execute. 4. T1 executes by 7 milliseconds and then call sleep (0.03), i.e., 30 milliseconds. Assuming that there is no overhead on the execution of the ISR and scheduler. When will T1 be awake and ready to be executed again? Justify your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
