Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.
please i want new someting not from the things are already in the internet or chegg itself
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions