The Research and Implementation on Extending Algorithm that High Response Ratio Tasks Schedule Preferentially on C/OS-II
Fensu Shi, Hua Wang · Advances in intelligent systems research/Advances in Intelligent Systems Research · 2014
To overcome shortcomings that μC/OS-II , based on static priority scheduling policy,may block the tasks in low priority for a long time,task scheduling policy based on high response ratio scheduling preferentially is added and achieved .This scheme divided the task in the system into significant tasks and secondary tasks.The significant tasks possess the low priority value statically and the secondary tasks possess the high priority value dynamically according to response ratio.It revises TCB and rewrites the function named OSSched and OSCtxSw .It maintains the hard real-time characteristic ofμC/OS-II .Task`s scheduling mode is optimized and application field of μC/OS-II is broadened.