[Python-ideas] Adding shm_open to mmap?
solipsis at pitrou.net
Wed Feb 15 18:02:50 CET 2012
On Wed, 15 Feb 2012 13:25:14 +0000
shibturn <shibturn at gmail.com> wrote:
> On 15/02/2012 12:34pm, Antoine Pitrou wrote:
> > The original discussion was about shared memory with multiprocessing.
> > In that context, automatic collection of shared memory areas shouldn't
> > be a problem.
> One problem with automatic collection is if you want to put a reference
> to an mmap on a queue. The mmap is likely to be disposed of before the
> target process can upickle it.
Can you elaborate? I would think the general use case is to keep an
mmap alive as long as you need it, so I don't understand why someone
would destroy an mmap just after sending it to another process.
More information about the Python-ideas