如题
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.
根据任务优先级,只有1个reader 会优先运行,拿到当前msg,其他reader可以拿到后面的msg,但是这样调度设计感觉比较混乱。
你可以自己写个简单程序测试下
writerTask()
{Mailbox_post(mbox, &msgA, FOREVER);}
readerTask1()
Mailbox_pend(mbox, &msgB, BIOS_NO_WAIT);
readerTask2()
Mailbox_pend(mbox, &msgB, BIOS_NO_WAIT);