operating systems -- 2

Job ID: 34699603

Budget: $10 – $30 USD

You are to use any distribution of the Linux operating system to create two C programs. Program consumerProducer.c and program producerConsumer.c. These two programs will implement full duplex communication.
The producerConsumer program will
1) open a text file with the name editSource.txt and will write all sentences of the created file on one pipe to be read by the consumerProducer program.
The consumerProducer program will
1) read from the pipe, and it will
2) count the number of characters,
3) count the number of words, and
4) count the number of lines in the received sentences. It will then
5) create a file named theCount.txt,
6) write the produced output to theCount.txt, and will
7) write the contents of the file theCount.txt on a second pipe to be read the producerConsumer process.
The producerConsumer process will display the received file on standard output. The contents of the editSource.txt file is as follows:
Source code represents the part of process that
contains the programming language itself. You may use a text editor to
write your source code file.
The format of theCount.txt file is:


Number of characters: number of characters found in editSource.txt Number of words: number of words found in editSource.txt
Number of lines: number of lines found in editSource.txt