文件名称:test
介绍说明--下载内容来自于网络,使用问题请自行百度
VxWorks 实验
编写程序实现以下功能:系统包含三个任务,一个初始化任务(tInitTask),一个生产者任务(tsendTask),一个消费者任务(treceiveTask)
要求:(1) tsendTaskt与receiveTask之间使用消息队列传递数据;
(2) tInitTask能设置tsendTask和treceiveTask的优先级;
(3) tInitTask能设置传递消息的数量和消息队列的大小;
(4) tInitTask能设置信号量类型,输入‘b’ 时使用二进制信号量实现任务tsendTask与treceiveTask之间的同步,输入‘c’ 使用计数式信号量实现两个任务之间的同步。-VxWorks experimental programming to achieve the following functions: The system consists of three tasks, an initialization tasks (tInitTask), a producer task (tsendTask), a consumer task (treceiveTask) requirements: (1) tsendTaskt used between message queue and receiveTask transmission of data (2) tInitTask can set tsendTask and treceiveTask priority (3) tInitTask can be set to deliver the message number and the message queue size (4) tInitTask can set the semaphore type, enter ' b' when using the binary signal amount to achieve the task tsendTask and treceiveTask synchronization between the input ' c' use-counting semaphore synchronization between two tasks.
编写程序实现以下功能:系统包含三个任务,一个初始化任务(tInitTask),一个生产者任务(tsendTask),一个消费者任务(treceiveTask)
要求:(1) tsendTaskt与receiveTask之间使用消息队列传递数据;
(2) tInitTask能设置tsendTask和treceiveTask的优先级;
(3) tInitTask能设置传递消息的数量和消息队列的大小;
(4) tInitTask能设置信号量类型,输入‘b’ 时使用二进制信号量实现任务tsendTask与treceiveTask之间的同步,输入‘c’ 使用计数式信号量实现两个任务之间的同步。-VxWorks experimental programming to achieve the following functions: The system consists of three tasks, an initialization tasks (tInitTask), a producer task (tsendTask), a consumer task (treceiveTask) requirements: (1) tsendTaskt used between message queue and receiveTask transmission of data (2) tInitTask can set tsendTask and treceiveTask priority (3) tInitTask can be set to deliver the message number and the message queue size (4) tInitTask can set the semaphore type, enter ' b' when using the binary signal amount to achieve the task tsendTask and treceiveTask synchronization between the input ' c' use-counting semaphore synchronization between two tasks.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
test.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.