Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider a program that performs the following steps repeatedly: 1 . Use the CPU for 4 milliseconds. 2 . Issue in I / O to
Consider a program that performs the following steps repeatedly:
Use the CPU for milliseconds.
Issue in IO to disk for milliseconds.
Use the CPU for milliseconds.
Issue an IO to the network for milliseconds.
Assume that each step depends on data obtained from the previous step. Also, assume that it takes
millisecond to execute the device driver code on the CPU for both the disk and the network at the beginning
of the IO Answer the following questions:
a Draw timeline diagrams time on the xaxis and utilization on the yaxis that illustrate the utilizations
of the CPU, disk, and network over the execution of two iterations of the program above. pts
b What are the average utilizations of the CPU, disk and network over these two iterations? pts
c & d Assume that there are two processes of the program above running in a multiprogramming system
ie when a process blocks for IO another process can get the CPU answer parts a and b for this
case showing which part belong to which process. You can ignore the time spent in context switching.
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