This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Enquiry about RTOS



Dear Ti,

 1.We will create 10 task with different time interval (50ms,100ms,200ms,500ms...etc)and all the tasks variable will be shared between all tasks.So can you suggest which one is better Semaphore(Mutex) or message queue.
2.What is the difference between message queue and semaphore(Mutex)
3.Or else can you suggest us the better method.please guide

  • Hi,

    Its better to check with the RTOS folks based on what RTOS you are porting on to TMS570.

    But in general for what you have described above, semaphore should do the job.

    Semaphores are used to deal with the conflicts that might arise when a resource is shared. In the meanwhile Message queues are used mainly to post more than one message to a task which can read on the message queue when it finds time to consume and process. Hope this helps, but pls check with the respective RTOS folks to get more details.

  • Hi karthikeyan,

                           Thanks for the suggestion.I will try it and will let you know.

    Thanks & regards

    Pandurang pai