0
95kviews
Given the following table Draw gantt chart, calculate the average waiting time & average turn-around time if the processes are scheduled using:

Draw gantt chart, calculate the average waiting time & average turn-around time if the processes are scheduled using: FCFS algorithm SJF algorithm (preemptive) enter image description here

2 Answers
5
11kviews

Turn Around Time = Process Completion Time – Process Arrival Time

Waiting time = Turn Around time – Burst time

First Come First Serve (FCFS) Scheduling

FCFS

Process Arrival Time Burst Time Completion Time Turn Around Time Waiting Time
P1 0 6 6 6 – 0 = 6 6 – 6 …

Create a free account to keep reading this post.

and 2 others joined a min ago.

2
4.1kviews

FCFS algorithm
Gantt Chart FCFS

calculate the average waiting time & average turn-around time calculate the average waiting time & average turn-around time
Average turn-around time
= (6+7+11+16+13)/5
= 53/5
= 10.6
Average turn-around time = 10.6

Average waiting time
= (0+5+6+10+12)/5
=(33)/5
=6.6
Average waiting time =6.6

SJF algorithm (non-preemptive)
Gantt Chart SJF
calculate the average waiting time & average …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.