Question
(Operating Systems) Consider a program that performs the following steps repeatedly: 1. Use the CPU for 2 milliseconds. 2. Issue in I/O to disk for
(Operating Systems)
Consider a program that performs the following steps repeatedly: 1. Use the CPU for 2 milliseconds. 2. Issue in I/O to disk for 7 milliseconds. 3. Use the CPU for 5 milliseconds. 4. Issue an I/O to the network for 9 milliseconds. Assume that each step depends on data obtained from the previous step. Also, assume that it takes 1 millisecond to execute the device driver code for both the disk and the network at the beginning of the I/O. Answer the following questions: (a) Draw a time-line diagram that illustrates the utilizations of the CPU, disk, and network over the execution of two iterations of the program above. (b) What are the utilizations of the CPU, disk and network over these two iterations? (c & d) Assume that there are two processes of the program above running concurrently, answer parts (a) and (b) for this case showing which part belong to which process.
Consider a program that performs the following steps repeatedly: 1. Use the CPU for 2 milliseconds. 2. Issue in I/O to disk for 7 milliseconds. 3. Use the CPU for 5 miliseconds. 4. Issue an I/O to the network for 9 milliseconds. Assume that each step depends on data obtained from the previous step. Also, assume that it takes 1 millisecond to erecute the device driver code for both the disk and the network at the beginning of the I/O. Answer the following questions: (a) Draw a time-line diagram that illustrates the utilizations of the CPU, disk, and network over the execu tion of two iterations of the program above. 3 pts (b) What are the utilizations of the CPU, disk and network over these two iterations? [3 pts] (c & d) Assume that there are two processes of the program above running concurrently, answer parts (a) and (b) for this case showing which part belong to which process. [6 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