**Operating System**
FCFS Example
Processes arrived in the order of P2,P3,P1.
Process |
Burst Time |
P1 |
24 |
P2 |
3 |
P3 |
3 |
Calculate the waiting times for P1, P2, and P3
Draw the Gantt Chart and calculate the average waiting time.
Solution:
Explanation:
=>FCFS stands for first come first serve.
=>In FCFS the job which comes first is served first and the job which comes at the last is served at the last.
=>Hence on the basis of above calculations waiting times of P1, P2 and P3 are 6 units, 0 units and 3 units.
=>Average waiting time = 3 units
I have explained each and every part with the help of statements as well as image attached to the answer above.
Get Answers For Free
Most questions answered within 1 hours.