Ross Ridge wrote:
>Hmm?  I don't see how the "Lua-style" coroutines you're looking are any
>lightweight than what Maurizio Vitale is looking for.  They're actually
>more heavyweight because you need to implement some method of returning
>values to the "coroutine" being yeilded to.

Dustin Laurence wrote:
>I guess that depends on whether the userspace thread package in question
>provides for a return value as pthreads does.

Maurizio Vitale clearly wasn't looking for pthreads.

> In any case, coroutines don't need a scheduler, even a cooperative one.

He also made it clear he wanted schedule his threads himself, just like
you want to do.  In fact, what he seems to be trying to implement are
true symmetric coroutines.

                                        Ross Ridge

Reply via email to