Consider a system with a set of processes P1, P2, P3 and their CPU bu…

Previous year question for Operating Systems.

Question

Consider a system with a set of processes P1, P2, P3 and their CPU burst times, priorities and arrival times being mentioned as below:

Process | CPU burst time | Arrival time | Priority

--- | --- | --- | ---

P1 | 5 | 0 | 2

P2 | 15 | 1 | 3

P3 | 10 | 2 | 1

Assuming 1 to be the highest priority, calculate average waiting time and average turnaround time for following scheduling algorithms:

(i) First come first served

(ii) Preemptive shortest job first

(iii) Non preemptive shortest job first

(iv) Preemptive priority

(v) Non Preemptive priority

(vi) Round robin (with time quantum of 2 units)

Related pages

More PYQs on Scheduling Algorithms

Open on CachedInfo