Spawn and shared memory for process