Interactions with Normal Threads

The RealtimeThread class is designed to work with threads from the Thread class, but the accommodation is somewhat one-sided. Ordinary threads can run without modification in a system containing real-time threads. Real-time threads that interact with ordinary threads will suffer performance problems unless they take special care to decouple themselves from the performance of non-real-time threads.

Ordinary threads have a far more limited range of priorities than do real-time threads, but the RTSJ requires priority boosting to operate on them. This means that an ordinary thread may find itself with a priority that is not conformant with the JLS. That should not ordinarily be a problem, but it is a small deviation ...

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.