You are on page 1of 2

Q: Consider the following set of processes, with the length of the CPU-burst time given in

milliseconds:

Proces Burst Priority


s Time
P1 10 3
P2 1 1
P3 2 3
P4 1 4
P5 5 2

The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0. Draw three
Gantt charts illustrating the execution of these processes using FCFS, SJF, and RR (quantum = 1)
scheduling.

Ans:

Note: In Tables of FCFS, SJF and RR the elements A, B, C, D and E represents P1, P2, P3, P4 and P5
respectively.

FCFS (First Come First Serve):

Gantt Chart
SJF (Shortest Jon Fast):

Gantt Chart

RR (Round Robin):

Gantt Chart

You might also like