Mailboxes vs Message queues - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

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

Hi all,
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
2. Mailboxes

Comments

  • RCGwodaRCGwoda Posts: 4Member
    Adding further,
    i wanted
    1. latency difference between Msg queue and Mailbox.
    2. Assuming 1 Multi-Core Processors having two cores A and B, which one should be used.
    a. between cores, which is best way to communicate.
    b. within core and between its threads, best way to communicate
Sign In or Register to comment.