lkml.org 
[lkml]   [2007]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2 of 4] Introduce i386 fibril scheduling


On Fri, 2 Feb 2007, Ingo Molnar wrote:
>
> Note: such a 'flip' would only occur when the original context blocks,
> /not/ on every async syscall.

Right.

So can you take a look at Zach's fibril idea again? Because that's exactly
what it does. It basically sets a flag, saying "flip to this when you
block or yield". Of course, it's a bit bigger than just a flag, since it
needs to describe what to flip to, but that's the basic idea.

Now, if you want to make fibrils *also* then actually use a separate
thread, that's an extension. But you were arguing as if they should use
threads to begin with, and that sounds stupid. Now you seem to retract it,
since you say "only if you need to block".

THAT'S THE POINT. That's what makes fibrils cooperative. The "only if you
block" is really what makes a fibril be something else than a regular
thread.

Linus
-
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/

\
 
 \ /
  Last update: 2007-02-02 23:57    [from the cache]
©2003-2011 Jasper Spaans