skip to main content
10.1145/1850771.1850774acmotherconferencesArticle/Chapter ViewAbstractPublication PagesjtresConference Proceedingsconference-collections
research-article

Using the executor framework to implement asynchronous event handling in the RTSJ

Published:19 August 2010Publication History

ABSTRACT

The concurrency utilities in the Java library supply a feature called the executor framework that initiates and controls the execution of threads. It provides many adjustable parameters and extensibility hooks to be useful across a wide range of contexts for specifically configuring a pool of threads to execute submitted runnables depending on the application's specific needs. The Real-Time Specification for Java (RTSJ) supports asynchronous event handling (AEH), where the mapping of handlers to server threads is performed by the real-time JVM. In the past we have criticized the RTSJ facility as it lacks user configurability. Two simple changes to the RTSJ model would allow the user to provide their own policy for mapping handlers to server threads using the executor framework. Although the executor framework is not RTSJ-aware it is very flexible. This paper therefore discusses the feasibility of using the framework to implement various AEH mapping models. We first identify the issues associated with adapting the executor framework to AEH in the RTSJ. Based on the findings, we propose a blueprint on how the framework can be incorporated with AEH in the RTSJ with real-time guarantees. By doing so, the programmer can be given comprehensive configurability over the pool of threads provided by the executor framework to execute asynchronous event handlers in the RTSJ with realtime guarantees.

References

  1. Aicas. Jamaica: Java Technology for Realtime. http://www.aicas.com/jamaica.html.Google ScholarGoogle Scholar
  2. R. Belliardi, B. Brosgol, P. Dibble, D. Holmes, and A. Wellings. Real-Time Specification for Java Ver. 1.0.2, 2008. http://www.rtsj.org/.Google ScholarGoogle Scholar
  3. A. Corsaro. Techniques and Patterns for Safe and Efficient Real-Time Middleware. PhD thesis, Washington University, St. Louis, MO, USA, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. P. Dibble. Real-Time Java Platform Programming. Sun Microsystems, USA, 2002.Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. S. Fridtjof. Asynchronous Event Handling in Jamaica from Aicas. Private Communications, April 2008.Google ScholarGoogle Scholar
  6. D. Holmes. Asynchronous Event Handling in OVM from Purdue University. Private Communications, April 2008.Google ScholarGoogle Scholar
  7. M. Kim and A. Wellings. An Efficient and Predictable Implementation of Asynchronous Event Handling in the RTSJ. In JTRES '08: Proceedings of the 6th International Workshop on Java Technologies for Real-Time and Embedded Systems, pages 48--57, New York, NY, USA, 2008. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. M. Kim and A. Wellings. Applying Fixed-Priority Preemptive Scheduling with Preemption Threshold to Asynchronous Event Handling in the RTSJ. In JTRES '09: Proceedings of the 7th International Workshop on Java Technologies for Real-Time and Embedded Systems, New York, NY, USA, 2009. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. M. Kim and A. Wellings. Refactoring Asynchronous Event Handling in the Real-Time Specification for Java. In ECRTS '09: Proceedings of the 21st Euromicro Conference on Real-Time Systems, Washington, USA, 2009. IEEE. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. S. Microsystems. Core Java J2SE 5.0. http://java.sun.com/j2se/1.5.0.Google ScholarGoogle Scholar
  11. F. Parain. Asynchronous Event Handling in Java RTS from Sun Microsystems. Private Communications, March 2007.Google ScholarGoogle Scholar
  12. A. Wellings. Concurrent and Real-Time Programming in Java. John Wiley & Sons, UK, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Using the executor framework to implement asynchronous event handling in the RTSJ

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in
        • Published in

          cover image ACM Other conferences
          JTRES '10: Proceedings of the 8th International Workshop on Java Technologies for Real-Time and Embedded Systems
          August 2010
          183 pages
          ISBN:9781450301220
          DOI:10.1145/1850771

          Copyright © 2010 ACM

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 19 August 2010

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article

          Acceptance Rates

          Overall Acceptance Rate50of70submissions,71%

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader