multiprocessing vs thread performance

James Mills prologic at shortcircuit.net.au
Mon Dec 29 22:08:16 EST 2008


On Tue, Dec 30, 2008 at 12:52 PM, Aaron Brady <castironpi at gmail.com> wrote:
> On Dec 29, 7:40 pm, "James Mills" <prolo... at shortcircuit.net.au>
> wrote:
>> On Tue, Dec 30, 2008 at 11:34 AM, Aaron Brady <castiro... at gmail.com> wrote:
>> > The OP may be interested in Erlang, which Wikipedia (end-all, be-all)
>> > claims is a 'distribution oriented language'.
> snip
>> I'm presently looking at Virtual Synchrony and
>> other distributed processing architectures - but
>> circuits is meant to be general purpose enough
>> to fit event-driven applications/systems.
>
> I noticed a while ago that threads can be used to simulate
> generators.  'next', 'send', and 'yield' are merely replaced by
> synchronizor calls (coining the term).
>
> Not the other way around, though, unless the generator guarantees a
> yield frequently.  'settrace' anyone?

Aaron, circuits doesn't use generators :)
What did your comment have to do with this ?

I have often seen generators used to
facilitate coroutine and coooperative
programming though.

cheers
James



More information about the Python-list mailing list