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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started