首页> 外文OA文献 >Hardware Implementation of Real-Time Operating System’s Thread Context Switch
【2h】

Hardware Implementation of Real-Time Operating System’s Thread Context Switch

机译:实时操作系统的线程上下文切换的硬件实现

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

Increasingly, embedded real-time applications use multi-threading. The benefits of multi-threading include greater throughput, improved responsiveness, and ease of development and maintenance. However, there are costs and pitfalls associated with multi-threading.In some of hard real-time applications, with very precise timing requirements, multi-threading itself becomes an overhead cost mainly due to scheduling and contextswitching components of the real-time operating system (RTOS). Different scheduling algorithms have been suggested to improve the overall system performance. However, context-switching still consumes much of the processor’s time and becomes a major overhead cost especially for hard real-time embedded systems.A typical RTOS context switch consumes 50 to 80 processor clock cycles (depending on processor architecture and context size) to store and restore the thread context. If a real-time application needs to respond to an event repeatedly less than this time, then the overall system performance may not be acceptable. The suggested approach in this thesis improves the context-switching time drastically. This technique has been implemented in hardware, as part of the processor state along with new central processing unit (CPU) instructions to take care of the context-switching process without interacting with external memory. With the suggested approach, the thread contextswitch can be achieved in 4 CPU clock cycles independent of context size. This is a significant improvement to thread context switching.
机译:嵌入式实时应用程序越来越多地使用多线程。多线程的好处包括更高的吞吐量,改进的响应能力以及易于开发和维护的能力。但是,与多线程相关联存在成本和陷阱。在某些硬实时应用中,由于对计时的要求非常严格,多线程本身成为开销成本,这主要归因于实时操作系统的调度和上下文切换组件(RTOS)。已经提出了不同的调度算法来改善整体系统性能。但是,上下文切换仍然会消耗处理器的大量时间,并且成为主要的开销成本,尤其是对于硬实时嵌入式系统。典型的RTOS上下文切换会消耗50到80个处理器时钟周期(取决于处理器架构和上下文大小)来存储并恢复线程上下文。如果实时应用程序需要少于此时间重复响应事件,则整体系统性能可能不可接受。本文提出的方法可以大大缩短上下文切换时间。这项技术已在硬件中实现,作为处理器状态的一部分,连同新的中央处理单元(CPU)指令一起照顾上下文切换过程,而无需与外部存储器进行交互。使用建议的方法,可以在4个CPU时钟周期内实现线程上下文切换,而与上下文大小无关。这是对线程上下文切换的重大改进。

著录项

  • 作者

    Gauba Deepak Kumar;

  • 作者单位
  • 年度 2010
  • 总页数
  • 原文格式 PDF
  • 正文语种
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号