Parallelization in Python 2.6

Hendrik van Rooyen hendrik at microcorp.co.za
Wed Aug 19 09:31:18 CEST 2009


On Tuesday 18 August 2009 22:45:38 Robert Dailey wrote:

> Really, all I'm trying to do is the most trivial type of
> parallelization. Take two functions, execute them in parallel. This
> type of parallelization is called "embarrassingly parallel", and is
> the simplest form. There are no dependencies between the two
> functions. They do requires read-only access to shared data, though.
> And if they are being spawned as sub-processes this could cause
> problems, unless the multiprocess module creates pipelines or other
> means to handle this situation.

Just use thread then and thread.start_new_thread.
It just works.

- Hendrik



More information about the Python-list mailing list