Professional Documents
Culture Documents
5 Understand CO1
SJF:
Gantt Chart
P1 P2 P4 P2 P1 P3
0 2 5 9 15 25
Avg waiting time(8+3+13+0)/4=6ms
Avg Turnaround Time=(15+8+23+3)/4=12.25ms
2 a. 5M 5 Understand CO1
b. Identified problems in MLFQ are 1) Starvation 2) Gaming the scheduler
Priority boosting is the solution for starvation as shown in the fig 2.5M
Gaming the scheduler is solved by using the rule : After some time period S, move all 5 Apply CO2
the jobs in the system to the topmost queue as shown in the fig: 2.5M
c. 5 Understand CO2
OR
3 a. fork ( ) creates new process,
5 Apply CO1