OOPSLA '04

Program
Technical Program
  Invited Speakers
  Technical Papers
  Onward!
  Panels
  Practitioner Reports
  Tutorials
Workshops
DesignFest
Educators' Symposium
Demonstrations
Posters
Doctoral Symposium
Exhibits
Student Research Comp.
FlashBoF
 
Turing Lecture
 
Social Events
 
Week at a Glance
 
Final Program (1.5M .pdf)

Find in Program
 

Page
Printer-friendly

Basket
view, help

"Synchronization-Free Concurrency: Comparing the RTSJ to C++"
Object-Oriented Programming, Systems, Languages and Applications
Home    Program    Housing & Transportation    Registration    Submissions    Wiki    Maps
 
  > Technical Program > Practitioner Reports > Working with Language Features

 : Wednesday

Synchronization-Free Concurrency: Comparing the RTSJ to C++

Meeting Rooms 11-12
Wednesday, 15:30, 30 minutes
 


 
7·8·9·10·11·12·13·14·15·16·17·18·19·20·21

Daniel Dvorak, Jet Propulsion Laboratory, California Institute of Technology
William Reinholtz, Jet Propulsion Laboratory, California Institute of Technology

Synchronized methods in Java make it easy to produce a correct, multithread-safe design for a ?single writer / multiple readers? problem. However, in the domain of real-time embedded systems, synchronized methods can introduce unacceptable time delays and even priority inversions, so designers seek non-synchronized solutions based on atomic operations. Such a solution is surprisingly complicated in the Real-Time Specification for Java (RTSJ), yet much simpler in C++. This paper examines the reasons for that difference and suggests that, in the domain of hard real-time systems, C++ holds several advantages over the RTSJ.