本文分析了嵌入式实时操作系统的两个重要的性能指标任务切换时间和中断延时及对实时控制的影响,并针对中断延时提出非屏蔽中断的改进方法。
This paper studies the interrupt latency and context-switch time of embedded real-time operating system, and about the interrupt latency a non-maskable interrupt idea is put forward.
较长的停顿意味着更多记忆的衰退,任务切换的可能性增大,以及恢复时间也更长这样的假设。
A longer pause means more memory degradation, increased likelihood of a task switch, and the assumption that recovery time is also longer.
在相对短的时间内,把注意力从一个任务切换到另一个任务,这就是“切换上下文”的定义。
Context Switching, is defined as changing focus and attention from one task to the other in relatively short periods of time.
当我们处理多任务的时候,实际上是把时间切碎并在多个任务上快速切换。
What we do when we multitask is devote tiny slices of time to several tasks in rapid succession.
这不但会浪费时间,当人们参加会议之后重新转移注意力,也会产生来自任务切换的时间消耗。
It's not just the time wasted but also that the person has to regain focus after the meeting, which creates waste from task-switching, too.
该方法考虑了上下文切换消耗时间对调度算法的影响,可以减少低优先级任务不必要的频繁抢占。
The algorithm considers the time consumption of context switches, and can reduce the unnecessary preempting behavior to tasks which have lower priorities.
但这并不意味着这种方法就是最优了,它是在任务切换的消耗和关中断的时间来平衡的,所以ucos - III也支持使用关中断的方法!
But this does not mean that this method is optimal, and it is consumed in the task switching and interrupt time off to balance, so UCOS-III also supports the use of off interrupt method!
很多人认为在同一时间处理多种任务是最理想的,但是事实是你又不是钢铁侠,大脑在不同的任务间切换会降低你的效率和表现。
Many people think it is optimal to juggle multiple tasks at once, but the truth is you aren't iron man. The brain has to switch gears between tasks, and this lowers your efficiency and performance.
一旦你已经制定了您的时间,就能切换到只显示当天分配任务的相黏模式。
Once you have your time mapped out, switch to Sticky mode which displays only the task you have assigned for the current day.
一旦你已经制定了您的时间,就能切换到只显示当天分配任务的相黏模式。
Once you have your time mapped out, switch to Sticky mode which displays only the task you have assigned for the current day.
应用推荐