multiprocessing vs thread performance

Aaron Brady castironpi at gmail.com
Mon Dec 29 21:52:59 EST 2008


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?



More information about the Python-list mailing list