文件名称:demo
- 所属分类:
- 其他嵌入式/单片机内容
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 玛**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1. 创建多 Task,为每个Task 创建私有的Message Queue,每个Task 只通过自己的私有Message Queue 接收消息;Task 间消息通信通过向对方私有Message Queue 发送消息完
成。
2. Task1:管理Task。负责系统启动时同步系统中其他Task 的启动同步,利用信号量的semFlush()完成。同时接收各Task 的告警信息,并负责系统结束时的Task 删除处理。
3. Task2:激励Task。利用taskDelay()完成周期地向Task3、Task4 发送激励消息。
4. Task3:Sender Task。接收Task2 的激励消息,并向Task4 发送消息。
5. Task4:Receiver Task。接收Task2、Task3 的消息,在接收到Task3 消息后,向Task3 回复消息。
6. 以上 Task 的调试信息及工作状态信息通过logmsg 输出。
-1. Create Multi-Task, for each Task to create private Message Queue, for each Task is only through their own private Message Queue to receive messages Task inter-messaging each other through private Message Queue to send the message End
Cheng.
2. Task1: Management Task. Synchronous system is responsible for system startup, the startup of other Task synchronization using semaphores of semFlush () to complete. At the same time to receive and Task of the warning information, and is responsible for the system at the end of Task delete processing.
3. Task2: Incentive Task. The use of taskDelay () complete cycle to Task3, Task4 incentive to send the message.
4. Task3: Sender Task. Task2 incentive to receive messages, send messages to the Task4.
5. Task4: Receiver Task. Receive Task2, Task3 news, in the received message Task3 to Task3 reply message.
6. The above Task debugging information and working status information through the logmsg output.
成。
2. Task1:管理Task。负责系统启动时同步系统中其他Task 的启动同步,利用信号量的semFlush()完成。同时接收各Task 的告警信息,并负责系统结束时的Task 删除处理。
3. Task2:激励Task。利用taskDelay()完成周期地向Task3、Task4 发送激励消息。
4. Task3:Sender Task。接收Task2 的激励消息,并向Task4 发送消息。
5. Task4:Receiver Task。接收Task2、Task3 的消息,在接收到Task3 消息后,向Task3 回复消息。
6. 以上 Task 的调试信息及工作状态信息通过logmsg 输出。
-1. Create Multi-Task, for each Task to create private Message Queue, for each Task is only through their own private Message Queue to receive messages Task inter-messaging each other through private Message Queue to send the message End
Cheng.
2. Task1: Management Task. Synchronous system is responsible for system startup, the startup of other Task synchronization using semaphores of semFlush () to complete. At the same time to receive and Task of the warning information, and is responsible for the system at the end of Task delete processing.
3. Task2: Incentive Task. The use of taskDelay () complete cycle to Task3, Task4 incentive to send the message.
4. Task3: Sender Task. Task2 incentive to receive messages, send messages to the Task4.
5. Task4: Receiver Task. Receive Task2, Task3 news, in the received message Task3 to Task3 reply message.
6. The above Task debugging information and working status information through the logmsg output.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
demo.c