Question: ( i need code for this and code must be applied in Linux environment and using GCC compiler) please read everything carefuly Description: In this

( i need code for this and code must be applied in Linux environment and using GCC compiler)

please read everything carefuly

Description:

In this homework you are supposed to create a program using message queue method in order to do the followings

  1. You need to create message queue sender that read from file and send the file to the receiver with message size 1024 bytes, and every bulk should contains max 3 messages.
  2. The receiver will receives these messages and give a feedback for the sender after every three consecutive messages to inform sender that he receive 3 messages.

ni

The sender will wait to the receiver to send the feedback in order to start the next three messages.

  1. When the sender reaches the EOF he will wait until the receiver send message back to say "I have been received the last message"
  2. Both programs will finish

Use your own random file, you can generate random text file online.

Hine: you can follow the following diagram Figure I that illustrates double message queue between sender and receiver.

Send First Message ONLY

Queue

nt Message

Figure 1: Message Queue Illustrations

Important Notes:

  • You must apply system calls and library functions in your code
  • The code must be applied in Linux environment and using GCC compiler
  • The code will be evaluated with respect to functionality requested in advance
  • Please submit the project in time and make sure to follow the program requirements.
( i need code for this and code must be applied in Linux environment and using GCC compiler
 ( i need code for this and code must be applied
in Linux environment and using GCC compiler) please read everything carefuly Description:

Description: In this homework you are supposed to create a program using message queue method in order to do the followings 1. You need to create message queue sender that read from file and send the file to the receiver with message size 1024 bytes, and every bulk should contains max 3 messages. 2. The receiver will receives these messages and give a feedback for the sender after every three consecutive messages to inform sender that he receive 3 messages. 3. The sender will wait to the receiver to send the feedback in order to start the next three messages. 4. When the sender reaches the EOF he will wait until the receiver send message back to say "L bave been received the last mesage". 5. Both programs will finish Use your own random file, you can generate random text file online. Hine: you can follow the following diagram Figure I that illustrates double message queue between sender and receiver. Important Notes: - You must apply system calls and hibrary functions in your code - The code mast be applied in Lima environment and using GCC compiler - The code will be evaluated with respect to functionality requested in advance - Please submit the project in time and make sure to follow the program requirements. andom file, you can generate random text file online. ollow the following diagram Figure 1 that illustrates double m and receiver. Figure 1: Message Queue Illustrations

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!