Scheduling

The RTSJ permits other schedulers, but it requires a fixed-priority preemptive scheduler with at least 28 distinct priorities. (See Chapter 5 for explanations of these terms and most other scheduling terminology in this chapter.)

In addition to at least 28 real-time priorities, 10 non-real-time priorities are maintained for compatibility with applications written for platforms that do not implement the RTSJ. The RTSJ does not call for improvements in the behavior of the non-real-time priorities, but it does insist that the scheduler treat them all as lower priorities than the lowest real-time priority.

The scheduler has many features that real-time programmers like:

  • There are at least 28 priorities. Sometimes, real-time systems want ...

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.