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:
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 2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started