Tool/software: TI-RTOS
Hi Everyone,
I apologize in advance for asking comparatively irrelevant question but one thing I am 100% sure is that this is the exact forum where EXPERTS can guide you properly (Thanks TI). I am working on a TI-RTOS project that involve CAN communication. I have few TSKs; one (with higher priority) produces data by capturing CAN messages and putting them in appropriate Buffers (Queues) while the other tasks reads messages from Queue and process them. So there is a producer consumer model between the tasks. My question is:
- Let's say the producer is producing data at X-bytes/sec and the other tasks can process them at Y-bytes/sec. So is there any relation that will give a clue what should be the appropriate size of buffer between the tasks?
In Simple words, how to estimate Queue size between two tasks implementing a Producer-Consumer model?
Kind Regards,