- Using shared memory
- Posted by Manfred Viala on November 14th, 2007
Hi Newsgroup!
I'm a newbie in using shared memory and i don't find any detailed
information on how to use it in a serious way.
I have several subprocesses which are going to communicate with the
main-process. Should those subprocesses create their own shared memory area
or should they all use a "global" one with relative offset values for each
process? Does this depend on the application?
From point of security this shouldn't matter as both way's are not secure.
Are there any limit's on how many shm's can be created? Is it better to
create one big or several smaller ones? What about performance?
Thanks
Manfred
- Posted by Kellie Fitton on November 14th, 2007
On Nov 14, 3:06 am, Manfred Viala <m.vi...@hotmail.com> wrote:
Hi,
The following weblink explains in details how to manage
Memory-Mapped Files in Win32:
http://msdn2.microsoft.com/en-us/library/ms810613.aspx
Kellie.
- Posted by Scott McPhillips [MVP] on November 14th, 2007
"Manfred Viala" <m.viala@hotmail.com> wrote in message
news:1gtp6c418gq5w.1orfur8siyswy.dlg@40tude.net...
There is no set limit on the number that can be supported. The only
difference between using one big region and several little ones is that with
one big region you are using up more address space in every process, and
this address space must be contiguous. So if the total size is quite large
then using several smaller regions would reduce memory requirements.
--
Scott McPhillips [VC++ MVP]