Iterating over multiple collections in parallel
Jarrett Billingsley
kb3ctd2 at yahoo.com
Thu Jul 3 16:17:10 PDT 2008
"BCS" <ao at pathlink.com> wrote in message
news:55391cb32ecb08caab0811331728 at news.digitalmars.com...
>
> Can a singe thread have more than one stack? If someone can figure out how
> to do that, then this wouldn't be "to hard" to do in a lib.
>
> call dg1 on first stack, body jumps to stack 2 and calls dg 2, ..., last
> dg is called on the threads normal stack and calls the real body.
Of course, they're called stackthreads or Fibers. Downs has implemented
them in his tools package (in an unstable state) for Phobos, and they've
been in Tango for more than two years.
More information about the Digitalmars-d
mailing list