Click here to Skip to main content
15,881,630 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
For example,take process p1,p2,p3,p4,p5 with respective burst time as 6,5,2,3,7 seconds and cpu time quantum 2 seconds.Can any one tell me how to calculate the average ready queue length and the maximum ready queue length[For Round Robin Scheduling]? Here Ready Queue=>the queue from where we have to en-queue and de-queue during the processes execution. Actually, I have not got the formula or how to find these parameters anywhere till now.So any help will be highly appreciated. Thanks, Avishek
Posted
Comments
Sergey Alexandrovich Kryukov 3-Nov-13 15:08pm    
Not clear. What queue do you mean? Let's say, you have 1 CPU of 1 core and N application threads. Apparently, most of the time, N-1 threads are waiting for being scheduled, and 1 thread is running, and during some short period of time needed for operation of scheduler itself and thread switching, all N threads are waiting. If you can ignore that short period of time, N-C threads are waiting if you have C cores...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900