FreeRTos QueueAPI问题

我把代码改成了文档里Example 11的代码,但输出和Example 10的输出一样,但输出应该不一样,Example 11的输出应该如图而我输出却是 :Sender 1 = 100Sender 2 = 200Sender 1 = 100Sender 2 = 200......文档说明是:Example 11 is similar to Example 10, but the taskpriorities are reversed, so the receiving task hasa lower priority than the sending tasks. Also, thequeue is used to pass structures, rather thanintegers.The definition of the structure that is to be passed on aqueue, plus the declaration of two variables for use by theexample.求大佬能解答!

第1个回答  2018-11-27
对某些有一定并行(宏观)处理需求的项目,使用 RTOS 可以让处理逻辑更加条理化,程序结构更清晰,更有效地利用 CPU。而很多“无 OS”的系统,往往是一团乱麻,各个逻辑之间的耦合性非常高、改动一处可能引起一堆问题。从这个意义上说,使用 RTOS
相似回答