Computer Science, asked by adityagupta8538, 1 year ago

Consider a system which require 40 time units of burst time.The multilevel feedback queue scheduling is used and time quantum is 2 unit for top queue and is incremented by 5 unit at each level, then in what queue the process will terminate the execution?

Answers

Answered by snehaverma9528
4

Process P needs 40 Seconds for total execution.

At Queue 1 it is executed for 2 seconds and then interrupted and shifted to queue 2.

At Queue 2 it is executed for 7 seconds and then interrupted and shifted to queue 3.

At Queue 3 it is executed for 12 seconds and then interrupted and shifted to queue 4.

At Queue 4 it is executed for 17 seconds and then interrupted and shifted to queue 5.

At Queue 5 it executes for 2 seconds and then it completes.

Hence the process is interrupted 4 times and completes on queue 5.

Similar questions