shm_open() - opens a new shared memory object. ftruncate() - will set the size of the shared memory. In our program set it to 4096 via the SIZE constant. mmap() - map fiels into memory shm_unlink() - gets rid of the shared memory object -------------------------------------------------------------- To compile on Linux systems, enter gcc -lrt -o producer producer.c gcc -lrt -o consumer consumer.c -o -> specifies the output file name -l -> specifies link with shared libraries rt -> rt , real time extension library -------------------------------------------------------------- First run the producer which generates the sequence in shared memory: ./producer (ex. ./producer 35) Followed by running the consumer which outputs the sequence: ./consumer