
sharing data between processes
Yes, this is the most efficient way if both processes run on the
same machine.
With a standard file you have sharing and locking problems.
And shared memory may not be backed by a file - you could
use the swap file instead, provided you have a mechanism for
exchanging the appropriate handles across the two processes.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
Quote:
> I have been reading that memory mapped files are a good way to share large
> amounts of data between processes.
> 1) Is this the best way to do it?
> 2) Why is this preferred over using standard files, since it appears the
> storage is backed by a disk file anyway?
> Ed