in reply to Re: Coroutines in Perl
in thread Coroutines in Perl
The main diffrenece between coroutines and threads is that threads are meant to run in "paralel" (and they *really* do on multiprocessor machines), while coroutines are not. Therefore, when using coroutines, there is no need to worry about synchronisation, race conditions, starvation, you know ... stuff that plagues "multithreaded programming".
For an excelent discussion of coroutines and how they work in Lua, see this paper:
http://www.inf.puc-rio.br/~roberto/docs/corosblp.pdf
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Coroutines in Perl
by bsb (Priest) on May 08, 2004 at 04:47 UTC | |
Re^3: Coroutines in Perl
by PhilHibbs (Hermit) on May 10, 2004 at 16:01 UTC | |
by mrd (Beadle) on May 11, 2004 at 08:10 UTC | |
by PhilHibbs (Hermit) on May 11, 2004 at 10:48 UTC |
In Section
Seekers of Perl Wisdom