shared memory example