6Synchronization
“Time is like the wind; it lifts the light and leaves the heavy.”
—Doménico Cieri Estrada
IN order to meet the requirements of the RTSJ, and achieve real-time behavior, Java RTS has a modified implementation of the synchronized
keyword. This change is part of the overall set of changes made to thread scheduling and resource sharing that affects how threads interact in Java RTS. This chapter will dive into the internals of these changes, and will explain how potential problems, such as priority inversion, have been solved without violating the principals of the Java language. Later in the chapter, we’ll examine new classes that control how both real-time and non-real-time threads can share resources and communicate safely using ...
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.