[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

array.array()'s memory shared with multiprocessing.Process()

On 2017-09-10 23:05, iurly wrote:
> As far as I'm concerned, I'm probably better off using double buffers to avoid this kind of issues.
> Thanks a lot for your help!

That should work. Some other things to consider, if both processes are
on the same machine, are a series of memory-mapped files to pass the
data without pickling, or, if your code is only going to run on Unix,
something involving shared memory through multiprocessing.Array.

Thomas Jollans