文件名称:task
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.28kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
生成任务A,优先级50;任务B,优先级60
任务间通过消息队列通信
任务A分段向B传送字符串"Hello world!How are you?",每次传送4个字节。
A发送后等待,B将收到内容再回传A,A比较是否与发送内容相符,是则继续直到发送完成。
最终B要打印完整的接收字符串内容。
另外需打印每次各任务收发内容信息。
生成两个任务A、B 设置一个中间存储空间 使得A发送给B的字节经过B返回后能够进行比较!
任务A、任务B的创建,通过数组传递的方式传递-Generation task priority 50 B A, task, priority 60
Through the message queue communication between tasks
Task A segment to B transmits the string "Hello world! How are you?", each transmission of 4 bytes.
After delivery of A wait, B will receive content to return to A, A whether the comparison and sending content conform to, is to continue until the transmission completion.
Eventually B will print receiving the full string content.
In addition to print each time the task and content information.
To generate a two task A, B set an intermediate storage space for the A sent to B byte after B returned to compare!
A B task, task creation, passing through the array pass way
任务间通过消息队列通信
任务A分段向B传送字符串"Hello world!How are you?",每次传送4个字节。
A发送后等待,B将收到内容再回传A,A比较是否与发送内容相符,是则继续直到发送完成。
最终B要打印完整的接收字符串内容。
另外需打印每次各任务收发内容信息。
生成两个任务A、B 设置一个中间存储空间 使得A发送给B的字节经过B返回后能够进行比较!
任务A、任务B的创建,通过数组传递的方式传递-Generation task priority 50 B A, task, priority 60
Through the message queue communication between tasks
Task A segment to B transmits the string "Hello world! How are you?", each transmission of 4 bytes.
After delivery of A wait, B will receive content to return to A, A whether the comparison and sending content conform to, is to continue until the transmission completion.
Eventually B will print receiving the full string content.
In addition to print each time the task and content information.
To generate a two task A, B set an intermediate storage space for the A sent to B byte after B returned to compare!
A B task, task creation, passing through the array pass way
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1.txt
dcMsgQ Test.c
dcMsgQ Test.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.