On Sun, Jun 18, 2006 at 11:10:14PM -0400, Ross Ridge wrote:

> Dustin Laurence wrote:
> >Yeah, though even that is more heavyweight than coroutines, so your job
> >is harder than mine.
> 
> 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.

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

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

Dustin

Attachment: pgpIbFbL9tHr0.pgp
Description: PGP signature

Reply via email to