Refactoring Asynchronous Event Handling in the Real-Time Specification for Java

MinSeong Kim, Andy Wellings

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

The primary goal for asynchronous event handling (AEH) in the Real-Time Specification for Java (RTSJ) is to have a lightweight concurrency mechanism. However the RTSJ neither provides a well-defined guideline on how to implement AEH nor requires the documentation of the AEH model used in the implementation. Also the AEH AN in the RTSJ are criticised as lacking in configurability as they do not provide any means for programmers to have fine control over the AEH facilities, such as the mapping between real-time threads and handlers. For these reasons, it needs the refactoring of its application programming interface (API) to give programmers more configurability. This paper therefore, proposes a set of AEH related classes and interfaces to enable flexible configurability over AEH components. We have implemented the refactored configurable AEH AN using the new specifications on an existing RTSJ implementation and this paper shows that it allows more configurability for programmers than the current AEH API in the RTSJ does. Consequently programmers are able to specifically tailor the AEH subsystem to fit their applications' particular needs.

Original languageEnglish
Title of host publicationPROCEEDINGS OF THE 21ST EUROMICRO CONFERENCE ON REAL-TIME SYSTEMS
Place of PublicationLOS ALAMITOS
PublisherIEEE Computer Society
Pages25-34
Number of pages10
ISBN (Print)978-0-7695-3724-5
Publication statusPublished - 2009
Event21st Euromicro Conference on Real-Time Systems - Dublin
Duration: 1 Jul 20093 Jul 2009

Conference

Conference21st Euromicro Conference on Real-Time Systems
CityDublin
Period1/07/093/07/09

Cite this