radha gogia wrote:then the problem which I foresee is that if context switching would occur because of round-robin where each time slice is used then it would imply that in a particular thread some part would be executed and after sometime again control would come back to it ,and I guess it never happens while execution of threads in java ,so I guess round-robin algo is not used .
radha gogia wrote:so the fact that I used the term "it never happens' , I meant to say that in java threads are executed in its entire manner and after the thread is executed in its entire manner then the other high priority thread would be executed .
radha gogia wrote:Sir,I meant to say that in normal cases threads run to completion ,so is it that if there is an occurrence of context-switch within your thread execution then ...
radha gogia wrote: ... then it is because of round-robin algo implementation occuring within the algo,because it divides each thread into time slice,then again confusion arises that are the time slots always divided or they are divided only when the resources are less.
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|