首页> 外文期刊>Concurrency and computation: practice and experience >Asynchronous event handling and Safety Critical Java
【24h】

Asynchronous event handling and Safety Critical Java

机译:异步事件处理和安全关键Java

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

摘要

Over the last few years, the Java Community Process (under the auspices of Java Specification Request 302) has been developing a subset of Java augmented by the Real-Time Specification for Java (RTSJ) for use in safety critical systems. The concurrency model supported by Safety Critical Java (SCJ) relies almost exclusively on an event-based model rather than on a thread-based model. This paper reviews the advantages and disadvantages of the two models and gives the pragmatic reasons that SCJ has adopted the former model. It describes the SCJ approach and gives a simple example of how it can be used, illustrating the difference in style between the RTSJ and SCJ code. The paper then considers the compatibility of the SCJ model with the RTSJ. It argues that by basing the SCJ classes on the RTSJ's BoundAsyncEvent class, some inconsistencies exist between the SCJ and the RTSJ models. Furthermore, some of the optimizations that are possible when mapping handlers to server threads are inhibited, even though the programming restrictions necessary for these optimizations are imposed by the SCJ specification. A revised model is presented that has a slightly more complicated API but is more consistent with the RTSJ and allows the optimizations. However, there is a resulting increase in the necessary run-time support, particularly for multiprocessor implementations.
机译:在过去的几年中,Java社区流程(在Java Specification Request 302的主持下)已经开发了Java的子集,该Java子集由Java实时规范(RTSJ)增强,可用于安全关键系统。安全关键Java(SCJ)支持的并发模型几乎完全依赖于基于事件的模型,而不是基于线程的模型。本文回顾了这两种模型的优缺点,并给出了SCJ采用前一种模型的务实原因。它描述了SCJ方法,并给出了如何使用它的简单示例,说明了RTSJ和SCJ代码之间的样式差异。然后,本文考虑了SCJ模型与RTSJ的兼容性。它认为,通过将SCJ类基于RTSJ的BoundAsyncEvent类,在SCJ和RTSJ模型之间存在一些不一致之处。此外,即使将处理程序映射到服务器线程时,也会禁止某些可能的优化,即使这些优化所需的编程限制是由SCJ规范施加的。提出了一种经过修订的模型,该模型具有稍微复杂的API,但与RTSJ更加一致,并且可以进行优化。但是,结果导致必需的运行时支持增加,尤其是对于多处理器实现。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号