Embedded / RTOS

Moderators: None (Apply to moderate this forum)
Number of threads: 360
Number of posts: 663

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Mailboxes vs Message queues Posted by RCGwoda on 16 Dec 2010 at 3:13 AM
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
Report
Re: Mailboxes vs Message queues Posted by RCGwoda on 16 Dec 2010 at 3:30 AM
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



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.