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篇论文的施引文献,订阅后可以查看论文全部施引文献