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
- 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.
- 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.
- When the sender reaches the EOF he will wait until the receiver send message back to say "I have been received the last message"
- 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.

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
Get step-by-step solutions from verified subject matter experts
