189k views
5 votes
If we have 6 processes in a round-robin scheduler with a quantum of 20ms a piece, and we increase the priority of one process such that it now runs for 100ms, how much time of the entire scheduling cycle does the prioritized process run?

User Dgel
by
5.9k points

1 Answer

5 votes

Answer:

50% of the entire scheduling cycle

Step-by-step explanation:

Number of processes in round-robin scheduler = 6

The prioritized process run time is 100 ms while the other runs are 20 ms.

All processes are run during an entire scheduling cycle, therefore the total time for an entire scheduling cycle will be 100 ms + (20* 5) ms = 200ms.

Now we have total time 200 ms and in this time prioritized process runs for 100 ms.

Therefore the percentage of prioritized process run =
(100)/(200) *100 = 50%

Therefore the prioritized process runs 50% of the entire scheduling cycle.

User Jeff Brand
by
5.6k points