> How you get from there to "I'm the least important thing in the system"
> is, once again, beyond me. And even if that were a reasonable
> interpretation of the word 'yield', you would still hope that more than
> one CPU would get something to do if there was enough work to go around.
> Agreed, "spinning" on sched_yield is a very naive way of doing
> spinlocks. But that doesn't change the fact that it's a simple and
> correct way. One would have hoped that calling sched_yield every few
> million cycles wouldn't break the scheduler.
The way I understand it, the scheduler doesn't "break". You just
get a lot of useless busy waiting.
Helge Hafting
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/