Question: Consider a program that performs the following steps repeatedly: 1 . Use the CPU for 4 milliseconds. 2 . By issuing an I / O
Consider a program that performs the following steps repeatedly:
Use the CPU for milliseconds.
By issuing an IO use the disk for milliseconds.
Use the CPU for milliseconds.
By issuing an IO use network for milliseconds.
Assume that each step depends on data obtained from the previous step eg step
cannot start before step is completed. Also assume that each resource CPU or disk
or network can be used by one process at a time.
Answer the following questions:
a Draw timeline diagrams horizontal axis is the time line; one line for each
resource. That is parallel rows in the resulted figure. that illustrate the utilizations
of the CPU, disk, and network over the execution of two iterations of the program
above by a single process. pts
b What are the average utilizations of the CPU, disk and network over these two
iterations? Please note that the total time should be the same across all resources,
from the entire system starts until all work on any resource has been done. pts
c & d Assume that there are two independent processes in a multiprogramming
system ie when a process blocks for IO another process can get the CPU and each
process runs one iteration of the program above. Answer parts a and b for this case
showing which part belongs to which process. You can ignore the time spent in context
switching. pts
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
