Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I. Consider the following set of processes: Process Arrival Time CPU Burst Time Priority P1 P2 5 0 7 4 6 7 5 7 HIGH

image text in transcribed

I. Consider the following set of processes: Process Arrival Time CPU Burst Time Priority P1 P2 5 0 7 4 6 7 5 7 HIGH LOW VERY HIGH MEDIUM P3 P4 (a) Draw a Gantt chart of the process scheduling using preemptive, priority-based scheduling. Determine the waiting time & the turnaround time of individual processes and the average waiting time & the average turnaround time. In case of a tie, use arrival times to break the tie. (b) Draw a Gantt chart of the process scheduling using non-preemptive, priority-based scheduling. Determine the waiting time & the turnaround time of individual processes and the average waiting time & the average turnaround time. In case of a tie, use arrival times to break the tie. I. Consider the multilevel feedback queue-based CPU scheduling as per the following figure. Processes in the top queue get a time quantum of 8; if a process does not finish in one quantum it will be moved to the rear of the middle queue. Processes in the middle queue are processed only if the top queue is empty. Processes in the middle queue get a time quantum of 16; if a process does not finish in one quantum it will be moved to the rear of the bottom queue. Processes in the bottom queue are processed only if the top & middle queues are empty. Processes in the bottom queue are processed FCFS non-preemptive. Assume that at t=0, the top queue has the following processes in FIFO order: P1:35, P2:20, P3:7, P4:29. P5:11. The other two queues are empty to start with. Show the Gantt chart of the process schedule. Also, determine turnaround time & wait time of each process. quantum = 8 quantum = 16 FCFS

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions

Question

=+2. What do they like better about its competition?

Answered: 1 week ago