Question: 2. Suppose we have three processes. Process ID Required CPU time Arrival Time 400 msec 0 msec 300 msec 50 msec 200 msec 150 msec

2. Suppose we have three processes. Process ID Required CPU time Arrival Time 400 msec 0 msec 300 msec 50 msec 200 msec 150 msec a. Draw the execution timeline for the FIFO scheduling policy, and compute the average response time, average wait time, and average turnaround time. Please show your work (1 pt). b. Assume the time slice of 100 msec and a zero context-switching cost. Draw the execution timeline for the round-robin scheduling policy, and compute the average response time, average wait time, and average turnaround time. Please show your work (1 pt). c. Draw the execution timeline for the SJF scheduling policy, and compute the average response time, average wait time, and average turnaround time. Please show your work (1pt). d. Draw the execution timeline for the SRTF scheduling policy, and compute the average response time, average wait time, and average turnaround time. Please show your work (1 pt)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
