Question Solved1 Answer thank you so much for the help!c Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Process Burst Time Priority Pi 5 4 P2 3 1 P3 1 2 P4 7 2 P5 4 3 The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time o. If nonpreemptive priority (a larger priority number implies a higher priority) is used, what is the average waiting time of these processes? Nott answered Points out of 3.00 Hay question The following processes are being scheduled using a preemptive, priority-based, round- robin scheduling algorithm. Each process is assigned a numerical priority, with a higher number indicating a higher relative priority. The scheduler will execute the highest-priority process. For processes with the same priority, a round-robin scheduler will be used with a time quantum of 10 units. If a process is preempted by a higher-priority process, the preempted process is placed at the end of the queue, Process Burst Time Arrival Time Priority Pi 15 0 8 P2 20 O 3 P3 20 20 4 P4 20 25 P5 5 5 45 I 55 P6 15 5 What is the average turnaround time of these processes? a The following processes are being scheduled using a preemptive, priority-based, round- robin scheduling algorithm. Each process is assigned a numerical priority, with a higher number indicating a higher relative priority. The scheduler will execute the highest-priority process. For processes with the same priority, a round-robin scheduler will be used with a time quantum of 10 units. If a process is preempted by a higher-priority process, the preempted process is placed at the end of the queue. Process Burst Time Arrival Time Priority 0 8 P1 15 P2 20 O 3 20 20 P3 4 20 P4 25 4 P5 5 45 5 P6 15 55 5 What is the average waiting time of these processes?

2UHSOM The Asker · Computer Science
thank you so much for the help!c

Transcribed Image Text: Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Process Burst Time Priority Pi 5 4 P2 3 1 P3 1 2 P4 7 2 P5 4 3 The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time o. If nonpreemptive priority (a larger priority number implies a higher priority) is used, what is the average waiting time of these processes? Nott answered Points out of 3.00 Hay question The following processes are being scheduled using a preemptive, priority-based, round- robin scheduling algorithm. Each process is assigned a numerical priority, with a higher number indicating a higher relative priority. The scheduler will execute the highest-priority process. For processes with the same priority, a round-robin scheduler will be used with a time quantum of 10 units. If a process is preempted by a higher-priority process, the preempted process is placed at the end of the queue, Process Burst Time Arrival Time Priority Pi 15 0 8 P2 20 O 3 P3 20 20 4 P4 20 25 P5 5 5 45 I 55 P6 15 5 What is the average turnaround time of these processes? a The following processes are being scheduled using a preemptive, priority-based, round- robin scheduling algorithm. Each process is assigned a numerical priority, with a higher number indicating a higher relative priority. The scheduler will execute the highest-priority process. For processes with the same priority, a round-robin scheduler will be used with a time quantum of 10 units. If a process is preempted by a higher-priority process, the preempted process is placed at the end of the queue. Process Burst Time Arrival Time Priority 0 8 P1 15 P2 20 O 3 20 20 P3 4 20 P4 25 4 P5 5 45 5 P6 15 55 5 What is the average waiting time of these processes?
More
Transcribed Image Text: Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Process Burst Time Priority Pi 5 4 P2 3 1 P3 1 2 P4 7 2 P5 4 3 The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time o. If nonpreemptive priority (a larger priority number implies a higher priority) is used, what is the average waiting time of these processes? Nott answered Points out of 3.00 Hay question The following processes are being scheduled using a preemptive, priority-based, round- robin scheduling algorithm. Each process is assigned a numerical priority, with a higher number indicating a higher relative priority. The scheduler will execute the highest-priority process. For processes with the same priority, a round-robin scheduler will be used with a time quantum of 10 units. If a process is preempted by a higher-priority process, the preempted process is placed at the end of the queue, Process Burst Time Arrival Time Priority Pi 15 0 8 P2 20 O 3 P3 20 20 4 P4 20 25 P5 5 5 45 I 55 P6 15 5 What is the average turnaround time of these processes? a The following processes are being scheduled using a preemptive, priority-based, round- robin scheduling algorithm. Each process is assigned a numerical priority, with a higher number indicating a higher relative priority. The scheduler will execute the highest-priority process. For processes with the same priority, a round-robin scheduler will be used with a time quantum of 10 units. If a process is preempted by a higher-priority process, the preempted process is placed at the end of the queue. Process Burst Time Arrival Time Priority 0 8 P1 15 P2 20 O 3 20 20 P3 4 20 P4 25 4 P5 5 45 5 P6 15 55 5 What is the average waiting time of these processes?
See Answer
Add Answer +20 Points
Community Answer
B2UXW8 The First Answerer
See all the answers with 1 Unlock
Get 4 Free Unlocks by registration

u200bu200b u200bu200bu200bu200bu200bu200bAnswer:-1.=> Average waiting time for non-preemptive Prionity sh scheduling is,Average waiting =Sum of waiting time for time individual process No. of Process.Gantt chat for given processes is,[[P_(1),P_(5),P_(3),P_(4)|_(5)P_(2)],[,,9,10,],[17,,]]Now, waiting time for all processes is,Waiting time of P_(1)=0Waiting time of P_(2)=17waiting time of P_(3)=9Waiting time of P_(4)=10Waiting time of P_(5)=5Average waiting =(0+1+9+10+5)/(5)=(41)/(5) time quad5.05 milliseconds. u200bu200bu200bu200bu200bu200bRound Robin schedling:-Gantt chat:-Writing time of P_(1)=0+(20-10)=10waiting time of P_(2)=10+(85-20)=75waiting time of P_(3)=25waiting time of P_(u)=50+(75-60)=65Waiting time of P_(5)=45waiting time of P_(6)=60Arg. waiting time =(10+75+25+65+45+60)/(6){:[" Avy. Waiting time "=(280)/(6)],[=46.66" mill: gec "]:}Aug.turnaro ... See the full answer