   Share memory between multiple processes
  Suppose I have a program that pulls a bunch of information from a database into memory for faster access, easy enough, but suppose I want multiple instances of this program to share 1 and only 1 copy of that data. So any number of processes will use the same single copy of the information in memory.I''ve read it wouldn''t be difficult to do using DLLs but I''m hoping for a solution that would be cross platform friendly.Any help is appreciated. Thanks 
  anyone? ;  My friend,you''re delving into the world of pipes... turn back!!!  Seriously though, pipes are pretty crazy.  I don''t know if their is anything similiar on the windows side, but pipes are all the same when it comes to *nix.  so you typed "ls | grep "bin" " or something like that.  The shell you are running uses a pipe to run both programs.  There is only one catch to your situation.  You will HAVE to spawn the two programs that you want to share memory from a parent program.  why?  Simple, its all about a program not being allowed to access another programs address space.Hope that helps you,-brad ;  There is no cross-platform way to do it.  Win32 does it with pagefile-backed memory-mapped files; other platforms usually use APIs whose names begin with shm.