This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Which is better?global variable or message box

I want to develop a firmware for an embedded system (with LPC1313 micro), I want to use RTX RTOS for this project. I write the firmware myself(single developer).

I have seven tasks that should communicate with each other,some times one task send and receive data from many tasks.

What is the better way for task communications ? using global variables with some locking mechanism or message boxes?

If I want to use message box ,Is it needed to define one mbox for each communication between 2 tasks?

please help me.

0