# Question about queue

**URL:** <https://forums.freertos.org/t/question-about-queue/891>\
**Category:** Kernel\
**Created:** [December 2, 2009, 10:03pm UTC](https://forums.freertos.org/t/question-about-queue/891 "2009-12-02T22:03:52Z")\
**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:** [December 2, 2009, 10:03pm UTC](https://forums.freertos.org/t/question-about-queue/891/1 "2009-12-02T22:03:52Z")

</div>

**[gary10es](https://sourceforge.net/u/gary10es/)** wrote on [Wednesday, December 02, 2009](https://sourceforge.net/p/freertos/discussion/382005/thread/20e88ec6/#0a8d):

Hello everybody!

I want to communicate two task in FreeRTOS port to AVR32. I woluld like to known what is the time to send a data (byte) to one queue.  
Mi RTOS use a tick 1msecond and my clock frequency&nbsp; is 66Mhz  
Can i use&nbsp; queue? or must i&nbsp; use Semaphore? (i need the fastest solution)

thanks!  
Oliver

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [December 3, 2009, 7:33pm UTC](https://forums.freertos.org/t/question-about-queue/891/2 "2009-12-03T19:33:19Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Thursday, December 03, 2009](https://sourceforge.net/p/freertos/discussion/382005/thread/20e88ec6/#ac52):

The fastest solution would be to use neither, just use an array as a circular buffer. If you want to send lots of data then use a circular buffer to store the data, and then use a single send to a semaphore to unblock the task that will process the data.

I would say though, only you know what speed you need a response, so try it, see if it works, if it does great, if it doesn’t then think again.
