Using the backing store with mmap
JKPeck at gmail.com
Wed Jun 25 15:29:28 CEST 2008
According to the mmap.mmap 2.5 documentation,
"Changed in version 2.5: To map anonymous memory, -1 should be passed
as the fileno along with the length."
I would like to use shared memory to communicate between two processes
that otherwise have no way to communicate, but I couldn't find a way
to share anonymous memory. (I can use file names agreed on by
convention, but the file is really irrelevant, and I'd prefer to
eliminate it.) Is this possible? What is the lifetime of this shared
memory? Is it in fact private to the creating process, or is it
shared among all (Python) processes? Does it need to be flushed by a
writing process? How do the access flags relate to this? If I create
two such items, are they independent, or is it all one pool?
More information about the Python-list