NASA Logo

NTRS

NTRS - NASA Technical Reports Server

Back to Results
Hard Real-Time: C++ Versus RTSJIn the domain of hard real-time systems, which language is better: C++ or the Real-Time Specification for Java (RTSJ)? Although ordinary Java provides a more productive programming environment than C++ due to its automatic memory management, that benefit does not apply to RTSJ when using NoHeapRealtimeThread and non-heap memory areas. As a result, RTSJ programmers must manage non-heap memory explicitly. While that's not a deterrent for veteran real-time programmers-where explicit memory management is common-the lack of certain language features in RTSJ (and Java) makes that manual memory management harder to accomplish safely than in C++. This paper illustrates the problem for practitioners in the context of moving data and managing memory in a real-time producer/consumer pattern. The relative ease of implementation and safety of the C++ programming model suggests that RTSJ has a struggle ahead in the domain of hard real-time applications, despite its other attractive features.
Document ID
20110016056
Acquisition Source
Jet Propulsion Laboratory
Document Type
Conference Paper
External Source(s)
Authors
Dvorak, Daniel L.
(Jet Propulsion Lab., California Inst. of Tech. Pasadena, CA, United States)
Reinholtz, William K.
(Jet Propulsion Lab., California Inst. of Tech. Pasadena, CA, United States)
Date Acquired
August 25, 2013
Publication Date
October 24, 2004
Subject Category
Computer Programming And Software
Meeting Information
Meeting: 19th Annual ACM Conference on Object-Oriented Programming, Systems, Languages, and Applications
Location: Vancouver, British Columbia
Country: Canada
Start Date: October 24, 2004
End Date: October 28, 2004
Sponsors: Association for Computing Machinery
Distribution Limits
Public
Copyright
Other
Keywords
programming model
real-time
experimentation
design
programming language

Available Downloads

There are no available downloads for this record.
No Preview Available