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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.