in reply to Multithreading and Communication Among Perl Processes

I think Cache::FileCache is a great simple way to do IPC. It handles locking for you. It is allegedly faster than manually using locks on shared memory or sockets. It's reliably cross platform.

You effectively get a shared hash table across all your processes. Remember to clear out the cache on startup and shutdown otherwise data will persist between runs.

  • Comment on Re: Multithreading and Communication Among Perl Processes