# select on multiple queues

**URL:** <https://forums.freertos.org/t/select-on-multiple-queues/2940>\
**Category:** Kernel\
**Created:** [August 2, 2012, 11:42am UTC](https://forums.freertos.org/t/select-on-multiple-queues/2940 "2012-08-02T11:42:44Z")\
**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:** [August 2, 2012, 11:42am UTC](https://forums.freertos.org/t/select-on-multiple-queues/2940/1 "2012-08-02T11:42:44Z")

</div>

**[trilogik](https://sourceforge.net/u/trilogik/)** wrote on [Thursday, August 02, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/83924608/#d636):

Hi!

Is it possible to perform an action similar to a “select” on queues?

My goal is to wait on several queues for data and while doing so not polling the queues with a uxQueueMessagesWaiting in an endless loop, but automatically recognizing, whenever there is new data in one queue of let’s say four queues.

Is this possible and if so, how?

Thanks a lot in advance,  
Dennis

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [August 2, 2012, 12:57pm UTC](https://forums.freertos.org/t/select-on-multiple-queues/2940/2 "2012-08-02T12:57:05Z")

</div>

**[jon\_newcomb](https://sourceforge.net/u/jon_newcomb/)** wrote on [Thursday, August 02, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/83924608/#d5b6):

This came up a while ago, please refer to the following threads:  
[http://sourceforge.net/projects/freertos/forums/forum/382005/topic/1248938](http://sourceforge.net/projects/freertos/forums/forum/382005/topic/1248938)  
[http://sourceforge.net/projects/freertos/forums/forum/382005/topic/1967034](http://sourceforge.net/projects/freertos/forums/forum/382005/topic/1967034)

The forum search is not great, took me a while to find it as I searched for ‘block’ instead of ‘blocking’

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [August 2, 2012, 1:05pm UTC](https://forums.freertos.org/t/select-on-multiple-queues/2940/3 "2012-08-02T13:05:05Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Thursday, August 02, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/83924608/#63db):

> The forum search is not great,

… which is why I now host an archive on the FreeRTOS site, which will hopefully be easier to search, although Google takes a while to index the pages and does not index all of them:  
[http://www.freertos.org/FreeRTOS\_Support\_Forum\_Archive/freertos\_support\_forum\_archive\_index.html](http://www.freertos.org/FreeRTOS_Support_Forum_Archive/freertos_support_forum_archive_index.html)

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [August 2, 2012, 1:40pm UTC](https://forums.freertos.org/t/select-on-multiple-queues/2940/4 "2012-08-02T13:40:54Z")

</div>

**[jon\_newcomb](https://sourceforge.net/u/jon_newcomb/)** wrote on [Thursday, August 02, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/83924608/#592a):

Genius… ‘Blocked’ or ‘block’ - it found it first time.  
May I suggest add a note in the FAQ.

Also… on the forum which at the moment says:  
&nbsp;&nbsp; “Due to spam, anonymous posts are no longer permitted. Please register to post.  
&nbsp;&nbsp; Please read [http://www.freertos.org/FAQ-how-to-use-the-FreeRTOS-support-forum.html](http://www.freertos.org/FAQ-how-to-use-the-FreeRTOS-support-forum.html) before posting.”

Something like  
“For more intuitive search results, also try (…link…) ”
