期刊文献+

基于双数据通路的快速上下文切换方法 被引量:1

Fast Context Switch Based on Dual Data Paths
下载PDF
导出
摘要 嵌入式实时操作系统对时间性能有着严格的要求.上下文切换在实时操作系统中频繁发生,其时间开销直接影响整个系统的实时性能.针对一款拥有双数据通路、对存储系统具有并行访问能力的DSP系统,研究出一种快速上下文切换的方法.该方法将任务上下文相关的寄存器组分为两部分,分别保存在可以并行访问的内存中,通过DSP的双数据通路并行存取这两部分的内容.该方法在一款开放源代码的操作系统RTEMS中进行了验证,实验表明,在该DSP系统中,采用基于双数据通路的上下文切换方法能将上下文的保存和恢复时间降低为单数据通路的49.04%. 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年第11期22-30,共9页 Computer Systems & Applications
基金 国家"核心电子器件 高端通用芯片及基础软件产品"重大专项(2012ZX01034001-001) 国家自然科学基金(61379040 61272131) 江苏省自然科学基金(SBK2012194)
关键词 上下文切换 实时性 操作系统 DSP 双数据通路 context switch real-time operating system DSP dual data paths
  • 相关文献

参考文献14

  • 1Robert I,Davis,Alan Bums.A survey of hard real-time scheduling for multiprocessor systems.ACM Computing Surveys,2011,43(4):1-44.
  • 2Masmano M,Ripoll I,Alfons Crespo,et al.TLSF:a new dynamic memory allocator for real-time systems.Proc.of Euromicro Conference on Real-Time Systems (ECRTS'04).2004.79-86.
  • 3Kopetz H.Real-time systems:design and principles for distributed embedded applications 2nd ed.Springer,2011.
  • 4Context Switch Definition,http://www.linfo.org/context_ switch.html.2006 May.
  • 5Nader I,Rafla DG Hardware implementation of context switching for hard real-time operating systems.Proc.of Midwest Symposium on Circuits and Systems.2011.1-4.
  • 6Hambarde P,Varma R,Jha S.The survey of real time operating system:RTOS.Proc.of Electronic Systems,Signal Processing and Computing Technologies (ICESC).IEEE.2014.34-39.
  • 7John A,Stankovic,Rajkumar R.Real-time operating systems.Real-time System,2004,28(2-3):237-253.
  • 8RTEMS home page,https://www.rtems.org/.2014.
  • 9Zhou XR,Petrov P.Rapid and low-cost context-switch through embedded processor customization for real-time and control applications.Proc.of Design Automation Conference.2006.352-257.
  • 10Koh K,Lee SH,Yun S.Selective context switching scheme on flash memory.Proc.of International Conference on Computational Science and its Applications.2009.

二级参考文献7

  • 1[1]Liu C L,Layland J W.Scheduling algorithms for multi-programming in a hard real-time environment[J].Journal of the ACM,1973,20(1):46-61.
  • 2[2]Harbour M G,Klein M H,Lehoczky J P.Timing analysis for fixed-priority scheduling of hard real-time systems[J].IEEE Transactions on Software Engineering,1994,20 (1):13-28.
  • 3[3]Burns A,Tindell K W,Wellings A J.Effective analysis for engineering real-time fixed priority schedulers[J].IEEE Transactions on Software Engineering,1995,21(5):475-480.
  • 4[4]Seal D.ARM Architecture Reference Manual[M].2nd Ed USA:Addison-Wesley Longman Publishing Co,2000.
  • 5[5]Lipovski G J.Embedded Microcontroller Interfacing for M-Core Systems[M].USA:Academic Press.2000.
  • 6[6]Labrosse J J.MicroC/OS Ⅱ:The Real Time Kernel[M].2nd Ed USA:CMP Books,2002.
  • 7[7]Barr M.How to choose a real-time operating system[EB/OL].2003.http://www.netrino.com/Articles/RTOSes/index.php.

共引文献1

同被引文献8

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部