
Messages in this thread
SubjectRe: must-fix list for 2.6.0
the (rather unclear) advantages of the sched_yield() change outweigh
the breakage which it caused linuxthreads applications.

Exactly right; we've gone back and forth on this a few times. What fixes
one seems to break the other. Hubertus Franke (
has been trying to reply with this succinct summary of
advantages/disadvantages but is having some sort of DNS issues right now so
I'll post it for him:

This goes back to the semantics of sched_yield().

OLD: when sched_yield() is called the task moves to expired,
every other task in the active queue will run first before the
yielding task will run again.

NEW: move the yielding task to the end of its current priority level,
but keeps it active not expired.

Why is this good?
(a) the task will not loose its timeslice length, because moving it to
expired effectively does that.
(b) it keeps the task responsive

Why is this bad?
might not have happened

What else could be done?
(a) drop the effective priority of the yielding task by a percentile,
but don't reduce the time slice!

Hubertus Franke
(w) 914-945-2003 (fax) 914-945-4425 TL: 862-2003

the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
©2003-2011 Jasper Spaans