Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

9. (10 pts) You now understand that the timer interrupt plays a crucial role in

ID: 3890342 • Letter: 9

Question

9. (10 pts) You now understand that the timer interrupt plays a crucial
role in forming the operating system's view of the passage of time. Con-
sider an OS that requests during bootup that the CPU be interrupted
once every 5ms by the timer interrupt circuitary. Each successive inter-
rupt is interpreted by the OS to correspond to the passage of another
5ms. Imagine that the timer interrupt circuitary on this computer
starts to malfunction and starts interrupting the CPU once every 10ms
instead. Discuss the impact of such a malfunction on: (a) the OS view
of the speed of various hardware elements (CPU, memory, IO devices,
etc.) and (b) performance metrics such as response time or through-
put o ered by the CPU scheduler. What if the malfunction resulted in
interrupts once every 1ms instead?

Explanation / Answer

Answer:

As in the above scenario before there was the timer interruption of 5ms and after due to the malfunction timer interruption has increased to 10ms. so the answer based on this will be as follows:

(A) Yes, the speed of the operating system will be slow as before the timer was only for 5ms but as it increased to 10ms then the response time of every app will also increase due to which user will fell bit slow system as compared to the 5ms system. This same will go for all the hardware like I/O devices, memory because the refresh rate of the system is increased so all the hardware component will also take time to respond.

(B) CPU scheduler is a type of software in the operating system which allocation the different resources to the different task.These are done with some kind of criteria like a priority, weight, resources required etc. When the malfunction will interrupt after every 1ms then the system will get really slow and the CPU scheduler will not able to perform well and by this, there will be not an optimized resource sharing. Due to which there will lack resources for other processes and hence system will lag and will not work efficiently.