PROCESS SCHEDULING

Experiment Number 4 : Preemptive Priority Scheduling



NUMERICALS
image           


PRACTICE NUMERICALS


Question 1
Consider the following set of processes and the length of the CPU burst given in ms. What is the average waiting time using priority scheduling?

Q1

(a) 5.2ms
(b) 8.2ms
(c) 1.2ms
(d) 6.2ms

ANSWER:




Question 2
Calculate waiting time and turn around time for the following processes:

Q2

(a) 3.6
(b) 7.8
(c) 6.9
(d) 4.0

ANSWER:




Question 3
Calculate average waiting time for following processes:

Q3

(a) 4.5
(b) 2.5
(c) 9.5
(d) 3.6

ANSWER:




Question 4
Calculate average turn-around time and average waiting time for the following processes.

Q4

(a) 5.6 , 3.6
(b) 8.6 , 4.6
(c) 4.6 , 2.6
(d) 3.6 , 8.6

ANSWER:




Question 5
Calculate average turn-around time and average waiting time for the following processes.

Q5

(a) 20 , 5.5
(b) 30 , 9.5
(c) 10 , 2.5
(d) 10 , 6.2

ANSWER: