sharing memory map between processes (same parent)
- From: phil-news-nospam@xxxxxxxx
- Date: 27 Apr 2008 20:04:08 GMT
I have forked two processes from the same parent. I'd like to have one of them
do open() and mmap() to map a file into memory (madvise would also be used).
Then I would like the other process to be able to access that mapping. Is
there a way to get that mapping shared with another process (much like it
would be had the parent mapped it first then forked the two child processes)
or at least transfer the mapping from one process to another? Note that it
will not necessarily be a mapping of the entire file, and the first process
may be keeping the descriptor open for later mapping of another part of the
file. Also, it may be possible to make it so the first process never does
any access of the mapped pages.
--
|WARNING: Due to extreme spam, I no longer see any articles originating from |
| Google Groups. If you want your postings to be seen by more readers |
| you will need to find a different place to post on Usenet. |
| Phil Howard KA9WGN (email for humans: first name in lower case at ipal.net) |
.
- Follow-Ups:
- Re: sharing memory map between processes (same parent)
- From: David Schwartz
- Re: sharing memory map between processes (same parent)
- From: ppi
- Re: sharing memory map between processes (same parent)
- From: Barry Margolin
- Re: sharing memory map between processes (same parent)
- Prev by Date: http server lib?
- Next by Date: Re: TCP connect in Non Blocking Mode
- Previous by thread: http server lib?
- Next by thread: Re: sharing memory map between processes (same parent)
- Index(es):
Relevant Pages
|