Question
In this project you need to apply message queue concepts to allow two processes to send message between each other. The code included to this
In this project you need to apply message queue concepts to allow two processes to send message between each other. The code included to this project is doing the message queue code for two processes. You need to allow the sender to send message and enter waiting as soon as it did not receive acknowledgment from the receiver, and he will send again a new message as he receive acknowledgment. Note: you need to allow both processes to be sender and receiver at the same time by initiating two message queues for sending and receiving.
Note: use the following Flow-chart to understand the issue
Note: please import the code into you device and run it.
See the example of running both sender and receiver
Start WHILE INPUT :- * Sender Receiver Send Fest Message ONLY Acknowlegment Message Queue YES Acknowledge It Message Queur SNED Message 1 IfAKNOW -NO WAIT instructor advancedprogramming: -/Documents/advanced programming/ShA-X instructor advancedprogramming: Documents/advanced programming/Sh - X File Edit View Search Terminal Help File Edit View Search Terminal Help instructor advancedprogramming:-/Documents/advanced_programming/Shared Memory$/instructor advancedprogramming:-/Documents/advanced programming/Shared Memorys/ sender receiver Enter a message:myname is mahmoud myname is mahmoud Message sentinstructor advancedprogramming:-/Documents/advanced_programing/Shar instructor advancedprogramming:-/Documents/advanced_programming/SharedMenorys edMemory Sender code: #includeStep 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