On 2009-10-08 15:14 PM, Felix wrote:
I am trying to create a shared, read-only numpy.ndarray between
several processes. After some googling the basic idea is:
sarr = mp.Array('i',1000)
ndarr = scipy.frombuffer(sarr._obj,dtype='int32')
Since it will be read only (after being filled once in a si
Hi,
The documentation for the Multiprocessing.Array says:
multiprocessing.Array(typecode_or_type, size_or_initializer, *,
lock=True)¶
...
If lock is False then access to the returned object will not be
automatically protected by a lock, so it will not necessarily be
“process-safe”.
...
However: