A Commuting Diagram Relating Threaded and Non-threaded JVM Models

  • Authors:
  • George Porter

  • Affiliations:
  • -

  • Venue:
  • A Commuting Diagram Relating Threaded and Non-threaded JVM Models
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

We establish a commuting diagram that relates two models of the Java Virtual Machine (JVM). The first model, M3, supports much of Java, including classes, objects, and dynamic method resolution. The second model, M4, builds upon M3 by adding threads, monitors, and synchronized methods. We describe a theorem, Main, that asserts that running certain "single-threaded" states on M4 is equivalent to transforming those states to the domain of M3, running the transformed state there, and translating the result back to the domain of M4. We define the criteria we use to determine if the resulting states are equivalent, and we define our notion of "single-threaded". We then discuss a few lessons learned during the development of Main.