I want to use lottery scheduling to my os
Posted: Tue May 20, 2008 11:03 pm
I used to implement a simple round robin scheduling. Now I want to change it to lottery scheduling. But how can I make sure that every process will have the right to be executed? As it only depends on the randomized method of choosing process. What if some process that always has no chance to be chosen?
And another question is what is the random method should I choose to make it schedule better? In the paper, it use Park Miller random generator, but what is the seed I can choose to generate as it is a pseudo random generator.
Thanks
And another question is what is the random method should I choose to make it schedule better? In the paper, it use Park Miller random generator, but what is the seed I can choose to generate as it is a pseudo random generator.
Thanks