Download presentation
Presentation is loading. Please wait.
Published byFrancis Barker Modified over 9 years ago
1
Exercise (4)
2
Exercise Assume the following jobs are executed with one processor, with the jobs arriving in the order listed in the table. – Suppose a system uses FCFS scheduling. Create a Gantt chart illustrating these processes. – What is the turnaround time for process p 3 ? – What is the average waiting time for processes? – How about Shortest-Job-Next (SJN) scheduling? 2 i (p i ) 080 120 210 320 450
3
3 p1p1 p2p2 p3p3 Avg. waiting time of FCFS is: i (p i ) 080 120 210 320 450 p0p0 p4p4 0 Avg. waiting time of SJN is: 0 FCFS: SJN: Turnaround time of process p 3 with FCFS: Turnaround time of process p 3 with SJN:
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.