Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Mailboxes vs Message queues
I wanted to check, which is the best option to make two different threads interact. Lets say i have 2 task A_task and B_task. A is at highest priority to B_task. Lets say i have to send few data parameters from A to B.
there are 2 approaches
1. send message to queue and maintain message queue.
2. Have data in global memory, post only mail box and the receiving thread needs to pick up pointer from mail box and retrieve data from shared global memory.
under what constraints, conditions, do we need to approach
1. Message queues
0 · ·