文件名称:task
介绍说明--下载内容均来自于网络,请自行研究使用
生成任务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