multiprocessing vs thread performance

Aaron Brady castironpi at gmail.com
Wed Dec 31 19:26:42 EST 2008


On Dec 31, 6:19 pm, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
> Aaron Brady <castiro... at gmail.com> writes:
> > I had an idea.  You could use 'multiprocessing' for synchronization,
> > and just use an mmap for the actual communication.  (I think it's a
> > good idea.)
>
> Are you reinventing POSH?  (http://poshmodule.sourceforge.net)

I thought the same thing!  Paul Boddie introduced me to POSH some
months ago.  I don't recall the implementation of synchro. objects in
POSH, but IIRC, 'multiprocessing' uses native OS handles opening in
multiple processes.  It could be that there would be substantial
overlap, or the trade-offs could be significant.  For one, the above
combination only permits strings to be shared, not objects.



More information about the Python-list mailing list