in reply to Make Current State Known

There is no single "best way" of doing this. Perlipc discusses the options.

As for security of shared memory, it has ownership and permissions much like files do.

Anno