# How I can send a message to  a task?

**URL:** <https://forums.freertos.org/t/how-i-can-send-a-message-to-a-task/3686>\
**Category:** Kernel\
**Created:** [April 25, 2010, 3:55pm UTC](https://forums.freertos.org/t/how-i-can-send-a-message-to-a-task/3686 "2010-04-25T15:55:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 25, 2010, 3:55pm UTC](https://forums.freertos.org/t/how-i-can-send-a-message-to-a-task/3686/1 "2010-04-25T15:55:26Z")

</div>

**[penauser](https://sourceforge.net/u/penauser/)** wrote on [Sunday, April 25, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/9faaeaac/#abb8):

Hi, is it possible to send the message to the task(s)?&nbsp; I mean I would like to send message from a task1 to task2.&nbsp; But only to the task2.&nbsp;&nbsp;  
How I can do that?  
Can anyone help me, please?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 25, 2010, 4:02pm UTC](https://forums.freertos.org/t/how-i-can-send-a-message-to-a-task/3686/2 "2010-04-25T16:02:36Z")

</div>

**[edwards3](https://sourceforge.net/u/edwards3/)** wrote on [Sunday, April 25, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/9faaeaac/#694f):

Read the web site [http://www.freertos.org/Inter-Task-Communication.html](http://www.freertos.org/Inter-Task-Communication.html) and look at the demo aps. There are a **lot** of examples.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 25, 2010, 6:30pm UTC](https://forums.freertos.org/t/how-i-can-send-a-message-to-a-task/3686/3 "2010-04-25T18:30:18Z")

</div>

**[penauser](https://sourceforge.net/u/penauser/)** wrote on [Sunday, April 25, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/9faaeaac/#f0b4):

Thank you edwardds3, but this is not what I meant.  
I know how I can using a queue or sharing resources but I would like to send a message to only one task.  
Examples:&nbsp; I have task1, task2 and task3.&nbsp; And now I would like to send message from task1 to task2(and task3 dont’t know anything that message).&nbsp; So same way as using a mailbox.&nbsp; I think that only possibility is use own queue between every tasks=\>&nbsp; Queue1 for task1 and task2, Queue2 for task1 and task3 and Queue3 for task2 and task3.  
Is this only way to do it?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 28, 2010, 1:22pm UTC](https://forums.freertos.org/t/how-i-can-send-a-message-to-a-task/3686/4 "2010-04-28T13:22:19Z")

</div>

**[jmaygarden](https://sourceforge.net/u/jmaygarden/)** wrote on [Wednesday, April 28, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/9faaeaac/#aeaa):

Using a queue for each message path certainly seems like a reasonable approach. Isn’t that how a mailbox would be implemented?
