Parallel Python

sturlamolden sturlamolden at yahoo.no
Thu Jan 11 13:02:17 CET 2007


robert wrote:

> Thus communicated data is "serialized" - not directly used as with threads or with custom shared memory techniques like POSH object sharing.

Correct, and that is precisely why MPI code is a lot easier to write
and debug than thread code. The OP used a similar technique in his
'parallel python' project.

This does not mean that MPI is inherently slower than threads however,
as there are overhead associated with thread synchronization as well.
With 'shared memory' between threads, a lot more fine grained
synchronization ans scheduling is needed, which impair performance and
often introduce obscure bugs.




More information about the Python-list mailing list