[lkml]   [2002]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Question about sched_yield()
On Tue, Jun 18, 2002 at 11:01:53AM -0700, David Schwartz wrote:
> Your assumptions are just plain wrong. The yielder is being nice, so it
> should get preferential treatment, not worse treatment.

Heh? Yielding is not about being nice, if you want to be nice you
lower your priority. Yielding is telling the scheduler "I am
temporarily out of things to do, maybe for a while, but a least until
all the others running threads got a chance to run too". Any
scheduler that runs you immediatly again without running the others
threads is _broken_.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:22    [W:0.118 / U:0.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site