Shared memory for data structures

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

In our Active Perl 5.8 script on Windows 2000, we cache a number of
database tables in memory in hashes, and use them for lookups to be
performed on records being read from a number of files. To make use of
a multiprocessor environment, we spawn multiple processes using fork.
This causes multiple copies of the cache being maintained. We have to
update the cache during the processing in certain cases and hence
would like to keep a single copy so that all processes see the same
lookup data.
Is there a way to let Perl keep some of the hash tables in shared
memory? Can somebody provide relevant pointers/suggestions?


Site Timeline