首页> 中文期刊> 《软件学报》 >考虑中断和上下文切换开销的响应时间分析

考虑中断和上下文切换开销的响应时间分析

         

摘要

Interrupt and context switch are basic mechanisms for multi-task scheduling in real-time and embedded systems.During schedulability analysis,the overheads of the interrupt and context switch should be considered in the calculation of tasks' worst-case response time.The current calculation methods of response time add interrupt as task with high priority,and simply add the overheads of context switch in the meantime.However,these methods neglect the details of practical systems and roughly give an inaccurate worst-case response time.In this paper,the mechanisms and time flow of interrupt and context switch are thoroughly described.In addition,their influence on tasks' critical instant is discussed.More importantly,a much more accurate calculation method for response time is presented.At last,simulations is conducted tc validate the improvement in accuracy of this new method.The response time analysis accounting for scheduling overheads is extended in this paper for the resource-constrained hard real-time systems which need to accurately calculate the response time.%实时嵌入式系统多采用中断和上下文切换实现多任务间调度,在对此类系统进行可调度性分析时,在任务的最差响应时间计算中必须包含中断和上下文切换开销.现有包含这些开销的方法是将中断作为高优先级任务,同时将上下文切换开销加入到任务最差执行时间中进行分析,然而这些方法过于粗略,缺乏对实际系统细节的考虑,计算得到的最差响应时间并不精确.首先,对中断和上下文切换的机制和时间流程进行详细的阐述,进而分析中断和上下文切换对任务关键性时刻的影响;接着,给出包含上述开销的更加精确的响应时间计算方法;最后进行仿真验证.扩展了包含系统调度开销的响应时间计算方法,可用于资源受限的硬实时系统中需要精确计算响应时间的场合.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号