rhitx wrote:
Can somebody please give like an overview how to do a round robin
scheduler..
I know that we're suppose to use a quantum/quanta? Is this going to be
like an int, then assign with with a value?
And do I implement the READY queue? Can I do it with an array of ints
then somewhat put it at the end of the array?
Please advise.
This is not the best place to ask these questions, especially since you
haven't translated your problem into C. I'm sure there are OS or
algorithms programming newsgroups where these questions would be more
appropriate.
And my primary advice would be to read your textbook and don't ask
others to do your homework for you. It should have a decent overview of
what things are, which ought to be enough to get you started.
But a couple hints in any case:
Your ready queue is going to be a list of processes, which should have
some internal representation already. So you won't want an array of
ints, but a queue of processes.
And quanta, if I remember properly, are the cutoffs at which you make
the context switch.