Re: mmap(), MAP_SHARED, MAP_ANONYMOUS and sharing memory
- From: Bahadir <Bilgehan.Balban@xxxxxxxxx>
- Date: Mon, 24 Dec 2007 07:51:31 -0800 (PST)
On Dec 24, 9:44 am, Rainer Weikusat <rweiku...@xxxxxxxxxxx> wrote:
Create a memory region shared among all processes created by the
process who mmap'ed it and all processes created by these processes
and ...
So in summary you mean an area mapped with MAP_ANON + MAP_SHARED would
be shared among the descendants of the process. That makes sense since
only the descendants would know how to access the area.
Not at all. To share memory among unrelated processing using mmap, one
would either use shm_open or mmap real files.
I see that now.
Thanks,
Bahadir
.
- References:
- mmap(), MAP_SHARED, MAP_ANONYMOUS and sharing memory
- From: Bahadir
- Re: mmap(), MAP_SHARED, MAP_ANONYMOUS and sharing memory
- From: Rainer Weikusat
- mmap(), MAP_SHARED, MAP_ANONYMOUS and sharing memory
- Prev by Date: Re: mmap(), MAP_SHARED, MAP_ANONYMOUS and sharing memory
- Next by Date: Re: check if memory is accessible
- Previous by thread: Re: mmap(), MAP_SHARED, MAP_ANONYMOUS and sharing memory
- Next by thread: Re: check if memory is accessible
- Index(es):