9Asynchronous Transfer of Control and Thread Termination

There is a time for departure even when there is no certain place to go.”

—Tennessee Williams

IN many types of real-time systems, and in the real-world environments they work in, situations may change quickly and drastically. Java RTS provides support to Java developers to quickly and efficiently transfer processing control from one execution context to another. This is done through an extension to Java’s Exception facility, and requires that your real-time threads be written with such transfers of control in mind. This chapter discusses the situations where transfer of control may be needed, and what you need to do to your code to enable it and prepare for it. Additionally, we’ll look ...

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.