[Tutor] Python on multicore machines

Kent Johnson kent37 at tds.net
Fri Nov 27 14:38:50 CET 2009


On Fri, Nov 27, 2009 at 4:57 AM, OkaMthembo <zebra05 at gmail.com> wrote:
> Hi All,
>
> Is there a python implementation that takes advantage of all cores on modern
> multicore machines?

Presumably you mean something like, "Is there a python implementation
that can run multiple compute-bound processes on multiple cores
concurrently."

Some options:
- the multiprocessing module in the std lib - here is an example of
using it with numpy:
http://folk.uio.no/sturlamo/python/multiprocessing-tutorial.pdf

- Jython and IronPython both have threading models that allow multiple
threads to run concurrently on multiple processors.

Kent


More information about the Tutor mailing list