OS_Scheduling_Practice_Questions
OS_Scheduling_Practice_Questions
3. What are the criteria for selecting the best CPU scheduling algorithm?
2. Describe SJF and SRTF with suitable diagrams and example processes.
3. Explain the working of Priority Scheduling. How does aging help avoid starvation?
4. Describe the Round Robin algorithm. What is the effect of time quantum size?
5. Differentiate between SJF, SRTF, and Round Robin in terms of response and waiting times.
6. What happens when the time quantum is very large in Round Robin?
(Find: Gantt chart, Waiting Time (WT), Turnaround Time (TAT), Average WT and TAT)
1. FCFS
Processes: P1 P2 P3 P4
Arrival: 0 2 4 5
Burst Time: 7 4 1 4
2. Non-Preemptive SJF
Processes: P1 P2 P3 P4
Arrival: 0 2 4 5
Burst Time: 7 1 2 4
Processes: P1 P2 P3 P4
Arrival: 0 1 2 3
Burst Time: 8 4 2 1
Processes: P1 P2 P3 P4
Arrival: 0 1 2 3
Burst Time: 5 3 8 6
Priority: 2 1 4 3
Processes: P1 P2 P3 P4
Arrival: 0 1 2 3
Burst Time: 5 3 1 2