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: #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
