[Ace-users] [ace-users] Message Passing Between Two Tasks
Douglas C. Schmidt
schmidt at dre.vanderbilt.edu
Fri Dec 14 12:26:00 CST 2007
Hi David,
> Thank you for the information. I have been using the APG (First book I
> got when it looked like I might go down the ACE path). I assumed that
> there would be a way for the framework to sign up tasks and use the
> message queues. Here is what I was looking for:
>
> Task1 ----> Message Queue Task2 ----> Task2
>
> In this case Task1 could tell Task2 to do something by placing a message
> in the message queue of Task2; then Task2 would be able to process the
> message.
>
> You are right there will have to be a way for both tasks to know about
> the queue. I thought that ACE would have a way to advertise queues for
> tasks to know about them, but I am not sure how. Is there a way for the
> framework to advertise queues, or do I have something wrong with my
> assumptions?
There's no built-in support for inter-task communication in ACE other
than the ACE Streams framework. It would be straightforward to add the
capabilities you described above by using the ACE_Hash_Map_Manager in
conjunction with the ACE Task framework.
Take care,
Doug
More information about the Ace-users
mailing list