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 . 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
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