On 10Oct2018 00:42, Stephen J. Turnbull <turnbull.stephen...@u.tsukuba.ac.jp> 
wrote:
Chris Angelico writes:
> On Tue, Oct 9, 2018 at 10:05 PM Greg Ewing <greg.ew...@canterbury.ac.nz> 
wrote:
> > Chris Angelico wrote:
> > > In contrast, a mmap'd file is memory that you do indeed own.
> >
> > Although it's not really accurate to say that it's owned by
> > a particular process. If two processes mmap the same file,
> > the physical memory pages holding it appear in the address
> > spaces of both processes.

Subject to COW, I presume.  Probably in units smaller than the whole
file (per page?)

Yes, pages (whatever using the memory paging service works in).

But not COW. Changes to the memory affect the file contents and are visible to the other process. It is mapped, not pseudocopied.

Cheers,
Cameron Simpson <c...@cskk.id.au>
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to