Question: Hello In this assignment i must use c++ to write two programs and run it in Ubuntu terminal as this:(according to Operating System concepts) 1.

Hello

In this assignment i must use c++ to write two programs and run it in Ubuntu terminal as this:(according to Operating System concepts)

1. In this assignment, you will work with message queues. You need to implement two processes, such that the first process reads the content of a file, e.g., file.txt, and passes it to the second process through a message queue. Upon receipt of the file content, the second process should count and print out the number of words in the file.

2.The purpose of this assignment is to work with named pipe to read data from a created pipe. You should implement a code to read all of data from an existing named pipe and print the number of lines in the data. Name of pipe is given in program arguments.

Example:

pipecount mypipe

output:

10

a sample of queue code is attached.

thank you.

http://www.mediafire.com/file/hhon50o53216ynd/queueSample.zip

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!