comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Shared Memory in Windows
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Shared Memory in Windows [message #48240] Tue, 04 April 2006 17:32
Robbie is currently offline  Robbie
Messages: 165
Registered: February 2006
Senior Member
Just a simple performance question for shared memory in Windows...

I've started aquainting myself with POSIX and SYSV shared memory in
UNIX and I was looking for a Windows equivalent. To my dismay shared
memory appears to be backed in the pagefile. Does that mean that I will
have overhead due to disk IO? Or is the pagefile actually backed in RAM
and only uses pagefile.sys when RAM is exhausted.

------------------------------------------------------------ ------------------------------------------------------------ --------------------------

> From IDLs SHMMAP documentation

Under Microsoft Windows, the CreateFileMapping() system call forms the
basis for shared memory as well as memory mapped files ... To create a
region of anonymous mapped memory instead of a mapped file, you pass a
special file handle (0xffffffff) to CreateFileMapping(). In this case,
the disk space used to back the shared memory is taken from the system
pagefile.

------------------------------------------------------------ ------------------------------------------------------------ --------------------------

> From the MSVC documentation for CreateFileMapping()

.... In this case, CreateFileMapping creates a file mapping object of
the specified size backed by the operating-system paging file rather
than by a named file in the file system.

------------------------------------------------------------ ------------------------------------------------------------ --------------------------

Thanks,
Robbie
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLWave documentation generation
Next Topic: Re: Re IDL w/ 12-bit grayscale?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:33:12 PDT 2025

Total time taken to generate the page: 0.00551 seconds