[Python-ideas] solving multi-core Python

Nathaniel Smith njs at pobox.com
Thu Jun 25 03:05:17 CEST 2015


On Wed, Jun 24, 2015 at 5:45 PM, Sturla Molden <sturla.molden at gmail.com> wrote:
> On 25/06/15 02:09, Devin Jeanpierre wrote:
>
>> Although, threads are better for memory
>> usage, by defaulting to sharing even on write. (Good for memory, maybe
>> not so good for bug-freedom...)
>
> I am not sure. Code written to use OpenMP tend to have less bugs than code
> written to use MPI. This suggests that shared memory is easier than
> message-passing, which is contrary to the common belief.

OpenMP is an *extremely* structured and constrained subset of shared
memory multithreading, and not at all comparable to
pthreads/threading.py/whatever.

-n

-- 
Nathaniel J. Smith -- http://vorpus.org


More information about the Python-ideas mailing list