Code for Mixer using Shared Memory