Question: CPU sets up VO Operation CPU recalves and processes VO Interrupt Program A Executing Program A resumes execution H+ ** Program A executes VO command

 CPU sets up VO Operation CPU recalves and processes VO Interrupt

CPU sets up VO Operation CPU recalves and processes VO Interrupt Program A Executing Program A resumes execution H+ ** Program A executes VO command CPU switches to Program B (context switch) CPU context switches back to Program A Program B executes Problem 6) The timeline shown above depicts 1/0 processing in a system using interrupts. Assume the following costs (timings) Program A has a total execution time of 1000 time units The CPU requires 10 time units to setup and initiate an I/O operation . Performing a context switch requires 40 time units. . Interrupt processing requires 35 time units. Program A begins execution at time t = 0 and invokes an 1/0 operation at time t - 200. The CPU receives the I/O completion interrupt at time t - 500. a) At what time does Program A complete its execution? Please show your work. b) As before, the time required to setup and initiate the I/O call is considered "real" work whereas the time to process interrupts and perform context switches is considered "wasted" CPU time (it is the overhead associated with multi-tasking). What percentage of the total time required to complete the execution of Program A is wasted computation time? Please show your work. CPU sets up VO Operation CPU recalves and processes VO Interrupt Program A Executing Program A resumes execution H+ ** Program A executes VO command CPU switches to Program B (context switch) CPU context switches back to Program A Program B executes Problem 6) The timeline shown above depicts 1/0 processing in a system using interrupts. Assume the following costs (timings) Program A has a total execution time of 1000 time units The CPU requires 10 time units to setup and initiate an I/O operation . Performing a context switch requires 40 time units. . Interrupt processing requires 35 time units. Program A begins execution at time t = 0 and invokes an 1/0 operation at time t - 200. The CPU receives the I/O completion interrupt at time t - 500. a) At what time does Program A complete its execution? Please show your work. b) As before, the time required to setup and initiate the I/O call is considered "real" work whereas the time to process interrupts and perform context switches is considered "wasted" CPU time (it is the overhead associated with multi-tasking). What percentage of the total time required to complete the execution of Program A is wasted computation time? Please show your work

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!