Efficient asynchronous event handling in the real-time specification for Java

Author:

Kim Minseong1,Wellings Andy1

Affiliation:

1. The University of York, UK

Abstract

The Real-Time Specification for Java (RTSJ) is becoming mature. It has been implemented, formed the basis for research and used in serious applications. Some strengths and weaknesses are emerging. One of the areas that requires further elaboration is asynchronous event handling (AEH). The primary goal for handlers in the RTSJ is to have a lightweight concurrency mechanism. Some implementation will, however, simply map a handler to a real-time thread and this results in undermining the original motivations and introduces performance penalties. However it is generally unclear how to map handlers to real-time threads effectively. Also the support for nonblocking handlers in the RTSJ is criticized as lacking in configurability as implementations are unable to take advantage of them. This article, therefore, examines the AEH techniques used in some popular RTSJ implementations and proposes two efficient AEH models for the RTSJ. We then define formal models of the RTSJ AEH implementations using the automata formalism provided by the UPPAAL model checking tool. Using the automata models, their properties are explored and verified. In the proposed models, blocking and nonblocking handlers are serviced by different algorithms. In this way, it is possible to assign a real-time thread to a handler at the right time in the right place while maintaining the fewest possible threads overall and to give a certain level of configurability to AEH. We also have implemented the proposed models on an existing RTSJ implementation, jRate and executed a set of performance tests that measure their respective dispatch and multiple-handler completion latencies. The results from the tests and the verifications indicate that the proposed models require fewer threads on average with better performance than other approaches.

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference13 articles.

1. Behrmann G. David A. and Larsen K. G. 2004. A tutorial on uppaal. Lecture Notes in Computer Science vol. 3185 Springer-Verlag Berlin Germany 200--236. Behrmann G. David A. and Larsen K. G. 2004. A tutorial on uppaal. Lecture Notes in Computer Science vol. 3185 Springer-Verlag Berlin Germany 200--236.

2. Belliardi R. Brosgol B. Dibble P. Holmes D. and Wellings A. J. 2008. Real-Time Specification for Java Ver. 1.0.2. http://www.rtsj.org/. Belliardi R. Brosgol B. Dibble P. Holmes D. and Wellings A. J. 2008. Real-Time Specification for Java Ver. 1.0.2. http://www.rtsj.org/.

3. Corsaro A. 2004. Techniques and patterns for safe and efficient real-time middleware. Ph.D. dissertation Washington University St. Louis MO. Corsaro A. 2004. Techniques and patterns for safe and efficient real-time middleware. Ph.D. dissertation Washington University St. Louis MO.

Cited by 8 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Allocation and scheduling of SystemJ programs on chip multiprocessors with weighted TDMA scheduling;Journal of Systems Architecture;2019-09

2. Reducing Power Consumption and Latency in Mobile Devices Using an Event Stream Model;ACM Transactions on Embedded Computing Systems;2017-02-28

3. Modeling Distributed Real-Time Systems in TIOA and UPPAAL;ACM Transactions on Embedded Computing Systems;2016-11-03

4. Application-aware deduplication for performance improvement of flash memory;Design Automation for Embedded Systems;2014-09-27

5. Composing Adaptive Distributed Embedded and Real-Time Java Systems Based on RTSJ;Self-Organization in Embedded Real-Time Systems;2012-09-13

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3