Selection of Priorities

The schedulable objects in an RTSJ system can be divided into three groups:

  1. Ordinary threads

  2. Real-time threads and asynchronous event handlers

  3. No-heap real-time threads and no-heap asynchronous event handlers

The ordinary threads have only ten priorities available to them, and those priorities are lower than the priorities available to real-time threads.

The priorities of real-time and no-heap real-time threads can be scattered in any order through the space of real-time priorities, but the platform is designed under the assumption that no-heap real-time threads will be given higher priorities than heap-using real-time threads.

If priorities are assigned to threads, as shown on the left, no-heap threads and event handlers ...

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.