文件名称:fanzhuanxinhao
介绍说明--下载内容均来自于网络,请自行研究使用
MyTask、YouTask和ThreeTask 。在主函数中创建任务MyTask。而YouTask和ThreeTask由任务MyTaskTask创建,其优先级分别为2、4、6。这三个任务都要占用资源s,任务YouTask访问时间短一些,在任务MyTask和任务ThreeTask利用while(OSTime<T) {}增加访问时间,T值分别为300,500。MyTask、YouTask和ThreeTask采用OSTimeDly(K)延时等待,K值均为200。这样出现任务优先级反转。为了解决优先级反转,设计何种信号量既解决此问题。请先指出任务优先级反转出现在哪里? 后显示克服过程-MyTask, YouTask and ThreeTask. In the main function to create a task MyTask. And YouTask and ThreeTask created by the task MyTaskTask its priority 2,4,6 respectively. MyTask, YouTask and ThreeTask used OSTimeDly (K) wait delay, K values are 200. This task priority inversion occurred. In order to solve the priority inversion, design is what semaphores to solve this problem. Please noted that the task priority inversion appear? After the show to overcome the process of
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验9.txt