39.3k views
3 votes
Process p1 p2 p3 p4 p5 service time 90 70 130 60 210 draw a gantt chart that shows the completion times for each process using round-robin cpu scheduling with a time slice of 50.

1 Answer

1 vote

Final answer:

A Gantt chart for round-robin CPU scheduling with a time slice of 50 units has been described for five processes with different service times. The chart progresses in cycles of 50 units until each process's service time is depleted.

Step-by-step explanation:

The student is asking for a Gantt chart that shows the completion times for each process using the round-robin CPU scheduling algorithm with a time slice of 50 units. Given the service times of each process (p1=90, p2=70, p3=130, p4=60, p5=210), we can represent the processes on a Gantt chart, taking turns of 50 units until each process is complete. It's important to keep track of the remaining time for each process after each time slice and to return to each process in a cyclic order until all processes are completed.

Example of the Gantt Chart sequence:

  1. p1 (50 time units used, 40 remaining)
  2. p2 (50 time units used, 20 remaining)
  3. p3 (50 time units used, 80 remaining)
  4. p4 (50 time units used, 10 remaining)
  5. p5 (50 time units used, 160 remaining)
  6. p1 (40 time units used, completion)
  7. p2 (20 time units used, completion)
  8. p3 (50 time units used, 30 remaining)
  9. p4 (10 time units used, completion)
  10. p5 (50 time units used, 110 remaining)
  11. p3 (30 time units used, completion)
  12. p5 (50 time units used, 60 remaining)
  13. p5 (50 time units used, 10 remaining)
  14. p5 (10 time units used, completion)
User Buthetleon
by
7.5k points