Re: Advanced concurrancy



Twisted [1] includes lots of support for asyncronous concurrency,
using deferreds. There is also the possiblity of PEP 342's [2]
concurrency through enhanced generators, and being able to pass data
to the generator every iteration. There are ways to simulate this, as
well. I've written a recipe [3] for it over at ASPN.

Personally, I like the generator approach better, because it gives a
feel of threads, but with direct control of the timeslicing, a better
sense of understanding, and doesn't rely on things happening in the
background, like deferreds often do.

On 7/28/05, Peter Tillotson <none@xxxxxxxxx> wrote:
> Hi,
>
> I'm looking for an advanced concurrency module for python and don't seem
> to be able to find anything suitable. Does anyone know where I might
> find one? I know that there is CSP like functionality built into
> Stackless but i'd like students to be able to use a standard python build..
>
> I'm trying to develop distributed / Grid computing modules based on
> python. The aim is to be able to use barriers for synchronisation and
> channels for communication between processes running on a single box.
> Then the jump to multiple processes on multiple boxes and eventually to
> MPI implementations. Hopefully, each jump should not be that big a leap.
>
> Of course it would be nice if there was a robust way of managing
> concurrency in python aswell ;-)
>
> p
> --
> http://mail.python.org/mailman/listinfo/python-list
>
.



Relevant Pages

  • Re: Advanced concurrancy
    ... I'm looking for an advanced concurrency module for python and don't seem to be able to find anything suitable. ... I know that there is CSP like functionality built into Stackless but i'd like students to be able to use a standard python build. ... Then the jump to multiple processes on multiple boxes and eventually to MPI implementations. ...
    (comp.lang.python)
  • Re: Advanced concurrancy
    ... It feels quite familiar, but i'd say that it is closer to Jade, the fipa compliant agent framework than CSP or pi calculus. ... I'll probably zip the Axion directory and distribute the zip with the code, adding the zip to the python path dynamically. ... I'm looking for an advanced concurrency module for python and don't seem ... of the year, learn python, Kamaelia, and build a simple streaming system taking a video file, taking snapshots and sending those to mobile phones and PC's - this was over a period of 3 months. ...
    (comp.lang.python)
  • Re: Advanced concurrancy
    ... > Stackless but i'd like students to be able to use a standard python build. ... The basic idea in Kamaelia is you have a class that represents a concurrent ... pre-university trainees, and vacation trainees, and found they're able to ... We're essentially working on making concurrency easy and natural to use, ...
    (comp.lang.python)
  • Re: Multicore-programming?
    ... would that be distributed across the cores? ... One particular program has to be programmed for concurrency to utilize ... Threading with Python is perhaps a bit easier than with other common ... dealing with bad bottlenecks in numerical computing. ...
    (comp.lang.python)
  • Re: Python syntax in Lisp and Scheme
    ... "yield" is the keyword that makes it into a generator. ... For the latter in Python, ... and compile it for subsequent execution, ...
    (comp.lang.python)