Operating Systems.
In round robin scheduling, Tq=8 milliseconds. Assume that there are n processes running, and that the worst-case waiting time to get the CPU again is Tw=112 milliseconds. Calculate the number of processes n. (show the calculation)
Tq(Time Quantum) = 8ms.
This means each process will run for 8 ms and go and join the ready queue if it has to execute more onto CPU.
For worst case, suppose the last process run @ t=112ms
Therefore the nth process, (n-1) process will run and each will run for 8 ms.
Let this n-1 process be y.
So,
y*8 = 112
y = 14
So total number of process is 14+1 = 15
So here when 14 process first execute for 8ms each , the last process ie 15th process will have to wait for 112 ms.
Thus total number of process is 15.
If you have any questions comment down. Please don't simply downvote and leave. If you are satisfied with answer , please? upvote thanks
Get Answers For Free
Most questions answered within 1 hours.