基于双数据通路的快速上下文切换方法
DOI:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

国家"核心电子器件、高端通用芯片及基础软件产品"重大专项(2012ZX01034001-001);国家自然科学基金(61379040,61272131);江苏省自然科学基金(SBK2012194)


Fast Context Switch Based on Dual Data Paths
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 增强出版
  • |
  • 文章评论
    摘要:

    嵌入式实时操作系统对时间性能有着严格的要求.上下文切换在实时操作系统中频繁发生,其时间开销直接影响整个系统的实时性能.针对一款拥有双数据通路、对存储系统具有并行访问能力的DSP系统,研究出一种快速上下文切换的方法.该方法将任务上下文相关的寄存器组分为两部分,分别保存在可以并行访问的内存中,通过DSP的双数据通路并行存取这两部分的内容.该方法在一款开放源代码的操作系统RTEMS中进行了验证,实验表明,在该DSP系统中,采用基于双数据通路的上下文切换方法能将上下文的保存和恢复时间降低为单数据通路的49.04%.

    Abstract:

    Time overhead is important in real-time operating system. Context switch is one major delay because it occurs frequently in a RTOS. The given DSP has features for having a dual data paths, providing multiple storage blocks can be accessed in parallel, general-purpose register banks can be accessed in parallel. To reduce the overhead of context switching, we proposed a solution based on the features of the given DSP. We split registers of context into two parts, and saved them in two memory parts which can be subjected to parallel access. When context switching, saving and restoring the registers of context via dual data paths is rather than one. This solution had been implemented in the RTEMS operating system. The experimental results show that saving and restoring the registers via dual data paths can reduce the processing time by 49.04% comparing to one data path.

    参考文献
    相似文献
    引证文献
引用本文

权彦清,陈香兰.基于双数据通路的快速上下文切换方法.计算机系统应用,2015,24(11):22-30

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2015-03-09
  • 最后修改日期:2015-04-26
  • 录用日期:
  • 在线发布日期: 2015-12-03
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号