mp using shared memory