Click to See Complete Forum and Search --> : Shared Memory


RamLA
March 27th, 2006, 12:54 AM
Hi All,

How can I implement the shared memory concept with C language on windows platform?

Here I want to share a common data with 2-3 executable of C language files on windows platform.


Thanks in advance,

- Ram

SuperKoko
March 27th, 2006, 05:15 AM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/mapviewoffile.asp (MapViewOfFile).
Of course, you need serialization to access this shared memory.
A critical section cannot be used (it is limited to one process).
But you can use a mutex (see CreateMutex & co).