Interaction with Scheduler

A simple priority scheduler will pay no attention to whether or not a thread can use the heap. The programmer can freely set the priority of a heap-using thread above the priority of a no-heap thread (though this is not recommended practice), and the scheduler will respect the programmer's wishes.

Unless a no-heap thread is delayed by a higher-priority (or otherwise more eligible) thread that is using the heap, the scheduler does not need to include any garbage collection overhead, not even the garbage collector's normal preemption delay, in the overhead for the no-heap thread.

A sophisticated scheduler or a human architect working out a scheduling problem is interested in no-heap nature because it changes the preemption ...

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.