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

Thomas Jollans tjol at tjol.eu
Mon Sep 11 06:19:04 EDT 2017


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




More information about the Python-list mailing list