...
首页> 外文期刊>The Computer journal >Multiprocessors and Asynchronous Event Handling in the Real-Time Specification for Java
【24h】

Multiprocessors and Asynchronous Event Handling in the Real-Time Specification for Java

机译:Java实时规范中的多处理器和异步事件处理

获取原文
获取原文并翻译 | 示例
           

摘要

The Real-Time Specification for Java (RTSJ) is silent on multiprocessor issues. It attempts not to preclude multiprocessor implementations but provides no direct support. Many areas of the RTSJ leave an implementation considerable freedom on how it provides the defined functionality. One such area is the asynchronous event handling (AEH) model. Events are fired and associated handlers are scheduled for execution in response; handlers have defined scheduling parameters and deadlines. The primary goal of the AEH model is to support a lightweight real-time concurrency model. Hence handlers, in general, do not have dedicated threads. Rather, the implementation is responsible for ensuring that all handlers meet their deadlines. Typically real-time threads are assigned to execute handlers by the implementation. This paper discusses the issues associated with implementing the AEH model on multiprocessor systems. The emphasis here is on achieving a lightweight model. A model is lightweight if it is able to meet the deadlines of all handlers with as few as possible realtime threads. In the RTSJ this is made more complicated because asynchronous event handlers are allowed to suspend themselves (for example, by waiting on a monitor condition). Such handlers are called blocking handlers. Most of an implementation's freedom comes from being able to optimize the support for those handlers that do not block. The paper first examines all possible releasing sequences of non-blocking handlers on multiprocessor systems. Based on this, it proposes an efficient and scalable AEH mapping model for multiprocessor systems, which limits the number of real-time threads even in the worst case while retaining the schedulability of the system. The proposed model is then examined to prove its safety and liveness requirements using a model checking tool, UPPAAL. The verification and simulation results of the model indicate that the safety and liveness requirements are satisfied. Most importantly, this paper derives the proposed model's greatest lower and least upper bounds of real-time threads required to execute a given number of non-blocking handlers. The greatest lower bound is equal to the number of processors, and the least upper bound is equal to the number of processors times that of the priority levels in the system. In the model, the number of real-time threads required to execute a given number of non-blocking handlers is restricted to between these two bounds depending on the releasing sequence of handlers. Even in the worst case, the model requires the least upper bound of real-time threads which is, in most cases, considerably less than the actual number of handlers in the system. This, in turn, enables the proposed model to be efficient and scalable by reducing time and space overheads, compared with a traditional 1:1 AEH mapping model where each handler is mapped to a single thread.
机译:Java实时规范(RTSJ)在多处理器问题上保持沉默。它尝试不排除多处理器实现,但不提供直接支持。 RTSJ的许多区域在实现方式上如何提供定义的功能方面留有相当大的自由度。这样的领域之一就是异步事件处理(AEH)模型。触发事件并安排相关的处理程序以响应执行;处理程序已定义了调度参数和截止日期。 AEH模型的主要目标是支持轻量级实时并发模型。因此,处理程序通常没有专用线程。相反,该实现负责确保所有处理程序均按时完成。通常,实时线程由实现分配给执行处理程序。本文讨论了与在多处理器系统上实现AEH模型相关的问题。这里的重点是实现轻量级模型。如果模型能够使用尽可能少的实时线程来满足所有处理程序的截止日期,则该模型是轻量级的。在RTSJ中,这变得更加复杂,因为允许异步事件处理程序将自身挂起(例如,通过等待监视条件)。这种处理程序称为阻塞处理程序。实现的大部分自由来自能够优化对那些不会阻塞的处理程序的支持。本文首先研究了多处理器系统上所有非阻塞处理程序的可能释放顺序。基于此,它为多处理器系统提出了一种有效且可扩展的AEH映射模型,该模型即使在最坏的情况下也限制了实时线程的数量,同时又保留了系统的可调度性。然后使用模型检查工具UPPAAL对提出的模型进行检查,以证明其安全性和活动性要求。模型的验证和仿真结果表明,满足了安全性和活动性要求。最重要的是,本文得出了执行给定数量的非阻塞处理程序所需的实时线程最大和最小上限。最大下限等于处理器数量,最小上限等于处理器数量乘以系统优先级的数量。在模型中,根据处理程序的释放顺序,将执行给定数量的非阻塞处理程序所需的实时线程数限制在这两个范围之间。即使在最坏的情况下,该模型也需要实时线程的最小上限,在大多数情况下,该上限远远小于系统中实际的处理程序数量。与传统的1:1 AEH映射模型(其中每个处理程序都映射到单个线程)相比,这又可以通过减少时间和空间开销来使建议的模型高效且可扩展。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号