Re: sharing memory map between processes (same parent)
- From: Chris Friesen <cbf123@xxxxxxxxxxxxx>
- Date: Mon, 28 Apr 2008 16:46:16 -0600
phil-news-nospam@xxxxxxxx wrote:
There's no need to open the mapping twice. It's only needed one. The
idea is for one process to go ahead and open and map the file and have
it all ready, maybe even with a few pages referenced, and hand it over
to the next process. That's what I do now with open descriptors. One
process opens the descriptor and hands it over to another process to
read from.
Why set up the mapping in the first process if it isn't going to actually use it?
Setting up mappings is relatively expensive, so it should only be done in the process that is going to use the mapping.
Chris
.
- Follow-Ups:
- Re: sharing memory map between processes (same parent)
- From: phil-news-nospam
- Re: sharing memory map between processes (same parent)
- References:
- sharing memory map between processes (same parent)
- From: phil-news-nospam
- Re: sharing memory map between processes (same parent)
- From: David Schwartz
- Re: sharing memory map between processes (same parent)
- From: phil-news-nospam
- Re: sharing memory map between processes (same parent)
- From: David Schwartz
- Re: sharing memory map between processes (same parent)
- From: phil-news-nospam
- sharing memory map between processes (same parent)
- Prev by Date: Re: TCP connect in Non Blocking Mode
- Next by Date: Re: TCP connect in Non Blocking Mode
- Previous by thread: Re: sharing memory map between processes (same parent)
- Next by thread: Re: sharing memory map between processes (same parent)
- Index(es):
Relevant Pages
|