Multiprocessing, shared memory vs. pickled copies

sturlamolden sturlamolden at
Mon Apr 11 15:25:37 EDT 2011

On 11 apr, 21:11, sturlamolden <sturlamol... at> wrote:

> import numpy as np
> import sharedmem as sm
> private_array = np.zeros((10,10))
> shared_array  = sm.zeros((10,10))

I am also using this to implement synchronization primitives (barrier,
lock, semaphore, event) that can be sent over an instance of
multiprocessing.Queue. The synchronization primitives in
multiprocessing cannot be communicated this way.


More information about the Python-list mailing list