Question: Consider a pre-emptive priority processor scheduler. There are three processes P1, P2, and P3 in the job mix that have the following characteristics: Process Arrival

Consider a pre-emptive priority processor scheduler. There are three processes P1, P2, and P3 in the job mix that have the following characteristics:

Process

Arrival

Time

Priority

Activity

P1

0 sec

1

8 sec CPU burst followed by

4 sec I/O burst followed by

6 sec CPU burst and quit

P2

2 sec

3

64 sec CPU burst and quit

P3

4 sec

2

2 sec CPU burst followed by

2 sec I/O burst followed by

2 sec CPU burst followed by

2 sec I/O burst followed by

2 sec CPU burst followed by

2 sec I/O burst followed by

2 sec CPU burst and quit

Diagram showing process execution:

Consider a pre-emptive priority processor scheduler. There are three processes P1, P2,

1) What is the turnaround time for each of P1, P2, and P3?

Solution:

2) What is the average waiting time for this job mix?

Solution:

CPU P1 I/O Time 64 P3 Pl P3 P1 P3 P1 P3 Pl 2 2 2 2 2 2 2 6 P3 P3 P3 P1 2 2 2 2 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!