shared memory demo