# Multiple use of the same queue?

**URL:** <https://forums.freertos.org/t/multiple-use-of-the-same-queue/5109>\
**Category:** Kernel\
**Created:** [March 11, 2009, 3:21pm UTC](https://forums.freertos.org/t/multiple-use-of-the-same-queue/5109 "2009-03-11T15:21:18Z")\
**Posts on this page:** 2\
**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:** [March 11, 2009, 3:21pm UTC](https://forums.freertos.org/t/multiple-use-of-the-same-queue/5109/1 "2009-03-11T15:21:18Z")

</div>

**[tjohansen](https://sourceforge.net/u/tjohansen/)** wrote on [Wednesday, March 11, 2009](https://sourceforge.net/p/freertos/discussion/382005/thread/e24c5060/#2a31):

Hallo

Does it make sense having multiple tasks, using xQueueReceive on the same queue?

If I do that, then "task1" receive the item. Next time "task2" receive it. Next time its "task1" again etc…

My idea is to do some sort of message processing, where multiple receivers can use it.

/Thomas

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 11, 2009, 4:25pm UTC](https://forums.freertos.org/t/multiple-use-of-the-same-queue/5109/2 "2009-03-11T16:25:36Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Wednesday, March 11, 2009](https://sourceforge.net/p/freertos/discussion/382005/thread/e24c5060/#2a31/87b3):

The queue implementation allows this behavior. Note that tasks that are blocked waiting on a queue receive will be unblocked in their priority order. So if three tasks are blocked with priorities 1, 1 and 2 respectively then the task with priority 2 will always be unblocked first even if it was the last task to call xQueueReceive().
