Effects on the JVM

A JVM can do little to control its worst-case performance. Like all real-time programs, a JVM running real-time software should not use demand paged memory. The most efficient JVMs also take cache residency into account. They can keep in the cache the parts of the bytecode interpreter that the JVM designer expects to be most popular. Beyond this, Java programs are helpless.

Even if a Java program could control the way hardware details affect their performance, Java religion (Write Once, Run Anywhere, or WORA) dictates that they shouldn't try. There is a contradiction in even trying to use hardware-aware techniques to control the performance of a Java program without introducing hardware dependencies.

Java programs are software. ...

Get Real-Time Java™ Platform Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.