Question: Q 5 . [ 6 pts . ] CPU Scheduling: The table below lists processes and their associated arrival C ) Round - Robin (

Q5.[6 pts.] CPU Scheduling: The table below lists processes and their associated arrival C) Round-Robin (RR) with a quantum =4, and context switch numphond f1.
D)2-CPU Round-Robin with quantum =2 each, with zero context switch overhead and
with processor affinity:
CPU 1:
P1 wait:
turnaround:
P2 wait:
turnaround:
P3 wait:
turnaround:
P4 wait:
turnaround:
Total average waiting time:
Throughput time:
time at the ready queue along with their CPU burst times.
For each of the following, draw a Gantt chart and show the scheduling order of the
above processes. In addition to the Gantt charts, calculate the total waiting time and
the turn round time for each process, as well as the total average waiting time, and the
throughput time.
Examples of a Gantt chart would be:
P1(2),CS(1),P2(3),dots
P1,P1,CS,P2,P2,P2,dots
(P1 runs for 2 unit time followed by a context switch in 1 unit time, followed by P2dots )
A) First-In-First-Out (FIFO), with no context switch overhead:
P1 wait:
turnaround:
P3 wait:
turnaround:
P2 wait:
turnaround:
P4 wait:
turnaround:
Total average waiting time:
Throughput time:
B) Shortest-Job First (SJF), with context switch overhead of 1:
P1 wait:
turnaround:
P2 wait:
turnaround:
P3 wait:
turnaround:
P4 wait:
turnaround:
Total average waiting time:
Throughput time:
Q 5 . [ 6 pts . ] CPU Scheduling: The table below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!