Understanding and using shared memory (2)