help: psos question
I think the answer is 'no'.
Lets assume the following scenario (3 tasks):
p(A)=p(B)<p(C)
In principle, you're right, if time slicing is disabled,
task A won't get preempted by task B or vice versa.
Now imagine that A gets preempted by C. After C finishes,
the scheduler will now select A or B next. Since I have
no access to the scheduler source, I can't predict which
one will be selected. I guess, it's probably the task which
was started first, but other orders are possible.
Unless the scheduler actually remembers which task got
preempted last, there will always be a situation which
would cause a indirect preemption of A over B or B over A.
I highly doubt that the scheduler does that, it would mean
a performance penalty.
Kind regards,
Iwo
|