SW_PREEMPT and cpu runq
Julian Elischer
julian at elischer.org
Thu May 8 22:27:45 UTC 2008
Murty, Ravi wrote:
> Hi,
>
>
>
> When a thread is being switched out and it is being preempted (e.g. time
> quantum expires), why does sched_switch hold it on the current cpu? i.e.
> why does the code see that it was preempted and put it back on the same
> queue?
>
> In other cases it looks to see if it can be migrated and the thread goes
> back some place else. If a thread is being kicked out and there is a
> perfectly idle CPU some where on the system, wouldn't it make sense to
> migrate the thread?
it shouldn't be held..
why do you think it is?
(and is this in 6.x still?)
>
>
>
> Thanks
> Ravi
>
>
>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
More information about the freebsd-hackers
mailing list