计算机与现代化Issue(6):33-37,5.DOI:10.3969/j.issn.1006-2475.2024.06.006
面向实时操作系统μC/OS-Ⅱ的两级优先调度算法
Two-level Priority Scheduling Algorithm for μC/OS-Ⅱ
摘要
Abstract
μC/OS-Ⅱ uses a preemptive priority scheduling algorithm that assigns different priorities to tasks according to their importance to ensure the real-time performance of the system.However,μC/OS-Ⅱ does not allow multiple tasks to have the same priority,which not only limits the number and flexibility of concurrent tasks,but also increases the complexity of the sys-tem in some cases,and may even cause security risks to the system operation.This paper extended the two-level priority schedul-ing mechanism for μC/OS-Ⅱ by improving the priority bitmap structure and scheduling algorithm of μC/OS-Ⅱ.The improved sys-tem allows users to assign the same priority to multiple tasks.Tasks under the same priority are scheduled according to the second-level priority,and the second-level scheduling policy can be flexibly selected according to the actual needs.Experi-ments prove that the algorithm can effectively improve the concurrency and resource utilization of μC/OS-Ⅱ,while maintaining low system overhead and response time.关键词
实时操作系统/μC/OS-Ⅱ/优先级调度算法/实时性Key words
real time operating system/μC/OS-Ⅱ/priority scheduling algorithm/real-time分类
信息技术与安全科学引用本文复制引用
李启明,杨霞,房文宇,孙海泳..面向实时操作系统μC/OS-Ⅱ的两级优先调度算法[J].计算机与现代化,2024,(6):33-37,5.基金项目
国家自然科学基金资助项目(U19A2078) (U19A2078)
四川省科技厅科技成果转化项目(2023ZHCG0005,2023ZHCG0008) (2023ZHCG0005,2023ZHCG0008)