Lab 6 - shared memory implementation