1)Please run the script file to compile the two files. 2)Run the consumer. ./cons 3)after running the consumer run the producer with the provided file called readingfile.This would look like ./prod readingfile 3)Both should attach memory and send the contents. 4)The read content will be placed in a new file called writingfile.txt if the file does not exist it will be created for you.
Optional If you would like to you can run multiple consumers for one producer just run the multiple consumers at the same time before running the producer.