multiprocessing module backport from 3 to 2.7 - spawn feature

Sturla Molden sturla.molden at gmail.com
Fri Jan 30 16:15:05 EST 2015


Andres Riancho <andres.riancho at gmail.com> wrote:

> Spawn, and I took that from the multiprocessing 3 documentation, will
> create a new process without using fork(). 

> This means that no memory
> is shared between the MainProcess and the spawn'ed sub-process created
> by multiprocessing.

If you memory map a segment with MAP_SHARED it will be shared, even after a
spawn. 

File descriptors are also shared.




More information about the Python-list mailing list