2Real-Time and Java SE

You may delay, but time will not.”

—Ben Franklin

CAN Java be used in a real-time context? Prior to the Real-Time Specification for Java (RTSJ), it was common wisdom of people in the classic real-time world, as well as those in the Java world, that it couldn’t be done. Skipping to the last page of this story, Java RTS has proven that Java can be used for real-time. However, this chapter will step back and explore the question so that you can learn this for yourself.

To be precise, standard Java does have trouble operating in a real-time context. There are many sources of latency and jitter that remove the predictability and determinism needed for a real-time application. Some are inherent in the way the Java Virtual Machine ...

Get Real-Time Java™ Programming with Java RTS 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.