[Python-ideas] Adding shm_open to mmap?

shibturn shibturn at gmail.com
Thu Feb 16 17:51:58 CET 2012

On 16/02/2012 1:40am, Sturla Molden wrote:
> A temporary file is not backed shared memory on Windows, but is a
> persistent file on disk. You have to mmap from the OS' paging file
> to get shared memory.

An mmap can certainly be used as shared memory when it is backed by a 
real file.  Or are you saying that it would work but be much slower?

Also, according to this msdn blog


if you open a file using FILE_ATTRIBUTE_TEMPORARY and
FILE_FLAG_DELETE_ON_CLOSE the file will not be flushed to the disk
unless there is memory pressure.


More information about the Python-ideas mailing list