Re: Why yield in coredump_wait? [was: Re: Resent: BUG in RT 45-01when RT program dumps core]

From: Steven Rostedt
Date: Thu May 19 2005 - 11:05:42 EST


On Thu, 2005-05-19 at 11:47 -0400, Lee Revell wrote:
> On Thu, 2005-05-19 at 09:37 -0400, Steven Rostedt wrote:
> > Now if there were no other threads to wait on it would just continue.
> > So, is there some real reason that this yield is there? Or is it just
> > trying to be nice, as in saying, "I'm dieing now and just don't want to
> > waste others time" (which I highly doubt is the case).
>
> Why do you highly doubt this is the case? This is actually the behavior
> I would expect.

Because yield just doesn't cut it. Yeah, OK it stops its time slice at
that moment, but it will still come in and preempt whoever to finish the
job. If it really wanted to do the "I'm dieing let others run" then it
should change its priority or nice value.

-- Steve


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/