sharing data between processes 
Author Message
 sharing data between processes

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



Sun, 05 Dec 2004 23:20:11 GMT  
 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



Mon, 06 Dec 2004 02:36:07 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. sharing data between processes

2. Sharing data between processes

3. Sharing data between processes

4. Sharing data between processes

5. Multiple processes sharing data space. --- HELP

6. is static data shared between processes

7. ??? Process Shared DLL and Data ???

8. sharing variables accros processes & process starting

9. DLL with shared data/class not sharing...

10. Common areas/common data/data sharing

11. How to exchange data between ISAPI process and Application Process

12. Child Process & Parent Process Data :: Win32

 

 
Powered by phpBB® Forum Software