Re: sharing memory map between processes (same parent)



On Apr 28, 10:53 am, phil-news-nos...@xxxxxxxx wrote:

| What's your outer problem? Why not just have the other process create
| the mapping itself? The answer to your question would be very
| different if the reason was that the mapping was private than it would
| be if the problem was that the mapping contains pointers and needs to
| be at the same address for all processes.

The idea is to have some of the work spread out between processes and avoid
having to use threads (because I don't want to share the whole VM). There
is a way to transfer (already open) file descriptors between processes. I
was hoping there might be a similar way to transfer already mapped pages
between processes. But if there is not, I will just have to do things some
other way.

You didn't answer my question. I still don't know why you don't just
have each process open the mapping itself. Is it because you need the
mappings to be at the same address? Is it because the mappings are
private? What is the problem that you think this would solve?

| You have a habit of posting suggested solutions rather than problems.

You have a habit of being accusatory. But I've only noticed this over the
past couple years. I remember long ago your postings were more civil.

I remember you as being a pretty bright guy, but honestly, your posts
seems to be getting, for lack of a better word, dumber. This is the
second time I've asked what I thought was a pretty clear question and
even included examples of what would be a good or possible answer, and
didn't get anywhere.

Any time you ask a question, expect the response "why don't you do it
the usual way?" and give the answer in the question. Why not just have
each process map it itself? That's more efficient, because it doesn't
require extra coordination.

DS
.



Relevant Pages