Producer Consumer implementation using shared memory.