文件名称: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.

相关搜索: message
queue
ta
queue

(系统自动生成,下载前可以参看下载内容)

下载文件列表

demo.c

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org