469,935 Members | 1,479 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,935 developers. It's quick & easy.

Using the backing store with mmap

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?

Jon Peck
Jun 27 '08 #1
0 708

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by James | last post: by
4 posts views Thread by Hao Xu | last post: by
4 posts views Thread by Fabiano Sidler | last post: by
26 posts views Thread by myeates | last post: by
2 posts views Thread by Neal Becker | last post: by
reply views Thread by Kris Kennaway | last post: by
reply views Thread by Gabriel Genellina | last post: by
1 post views Thread by magnus.lycka | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.