Real-Time Java Platform Programming

Real-Time Java Platform Programming
复制标题

实时Java平台编程

DOI:
--
复制
发表时间:
2002
期刊:
影响因子:
--
通讯作者:
P. Dibble
P. Dibble
中科院分区:
--
文献类型:
--
作者:
P. Dibble

文献摘要

被引文献

相似文献

前言。导言。1.景观。Java技术和实时。实时编程要求。Java和嵌入式实时。实时的定义。测量精度。一致性。效用函数曲线。Java的问题域。实时Java的问题域。总结。2.Java虚拟机的体系结构。写一次,跑到任何地方:也许。JVM组件。类加载。字节码解释器。安全管理器。垃圾收集器。线程管理。输入/输出。图形。解释器实现。标准口译员。优化的解释器。JIT。片断。编译为独立进程。本机方法。编译为本机方法。编译到JIT接口。3.硬件架构。一条指令的最坏情况执行。最坏的情况。切实的措施。管理有问题的硬件。管理按需寻呼。管理DMA。管理缓存。管理地址转换缓存。管理中断。对JVM的影响。4.垃圾收集。引用计数。基本垃圾收集。标记和清扫。碎片整理。复制收藏家。增量收集。实践中的增量垃圾收集。世代垃圾收集。代际参考。大型对象存储区。实时问题。5.优先级调度。日程安排条款。执行顺序。先发制人。非抢占式调度的诱人魅力。固定优先级与动态优先级。优先级反转。为什么有32个优先事项?优先级调度的问题。6.有最后期限的日程安排。潜在的机制。调度程序的作用域。一些系统。最早截止日期优先(EDF)。最不松懈。定期调度。不定期的服务器。处理超载。时机通常是概率的。7.速率单调分析。定理。Liu和Layland定理。图形化的方法。Lehoczky,Sa和Ding‘s定理。限制。独立的任务。截止日期等于期间。多处理器系统。8.实时Java平台简介。实时Java简史。本规范的主要特点。线程和调度。垃圾收集。异步事件处理程序。控制的异步转移。内存分配。内存访问。实施。RTSJ Hello World。9.封闭式。语言结构。Java闭包。闭合结构。RTSJ中的闭包。闭包的局限性。可读性。局部变量。构造函数。筑巢。10.高分辨率时间。决心。“时钟”。HighResolutionTime基类。绝对时间。相对时间。理性的时间。11.异步事件。将正在发生的事件绑定到一个事件。基本的异步事件操作。没有Happings的异步事件。计时触发。故障触发。软件事件触发。实施性讨论。12.实时线程。创造。日程安排。反转处理。固定优先级。可行性。没有处理程序的周期性线程。可行性分析。带有处理程序的定期线程。与普通线程的交互。更改日程安排程序。13.非堆内存。非堆内存的优势。分配制度。规矩。分配不朽内存的机制。从作用域内存分配的机制。分配时间。正在创建作用域内存。分配机制。终结者。使用嵌套的作用域内存。作用域堆栈(树)。DAG。嵌套作用域的实际使用。每个嵌套作用域都涉及两个内存区。陷阱。使用ecuteInArea。使用标准类。使用共享作用域内存。重新审视了范围堆栈。范围门户。印刷精美。简单举几个例子。14.非堆访问。与Scheduler交互。规矩。样本。最后一句话。笔记。15.更多的异步事件。异步事件和排定程序。CreateReleaseParameters方法。已绑定异步事件处理程序。异步事件处理程序和非堆内存。无堆事件处理程序与无堆线程。日程安排。最短到达间隔时间。异步事件处理程序和线程。特殊的异步事件。16.重用不朽记忆。使用固定对象分配器。载体物体。限制。回收RT线程。回收异步事件处理程序。17.控制的异步转移。上下文中的线程中断。异步中断触发。《计时课堂》。中断方法。火法。小结。替换规则。异步异常传播的规则。不经意间的接球。不匹配的doInterrupt。匹配的doInterrupt。内饰。针对异步中断的应用程序处理。不可中断代码。同步数据块的特殊问题。遗留代码。使用ATC进行螺纹端接。18.物理内存。物理内存和虚拟内存。物理内存管理器。内存类型。可拆卸内存。不朽的物理记忆。作用域物理内存。19.原始存储器访问。保安。偷窥和戳。获取/设置方法。映射。RawMemoyFloatAccess类。20.不加锁的同步。无等待队列的原理。构造函数。常用的方法。无等待写入队列。方法:研究方法。共享等待自由队列。无等待读取队列。额外的构造者。方法:研究方法。等待自由的双端队列。方法:研究方法。否-等待队列和内存。实施说明。21.推荐的做法。RTSJ的强大和易于使用的功能。实时线程数。周期性线程。异步事件处理程序。高分辨率时间。发生的事。RTSJ的非常强大和危险的特点。很简单。漏水。病毒式传播。RTSJ非常强大和挑剔的功能。作用域内存。否-堆异步事件处理程序。否-堆实时线程。异步中断异常。优先顺序的选择。索引。
Preface. Introduction. 1. Landscape. Java Technology and Real Time. Real-Time Programming Requirements. Java and Embedded Real Time. Definition of Real Time. Precision of Measurement. Consistency. Utility Function Curve. Java's Problem Domain. Real-Time Java's Problem Domain. Summary. 2. Architecture of the Java Virtual Machine. Write Once, Run Anywhere: Maybe. JVM Components. Class Loading. Bytecode Interpreter. Security Manager. Garbage Collector. Thread Management. Input/Output. Graphics. Interpreter Implementation. Standard Interpreter. Optimized Interpreter. JIT. Snippets. Compilation to Independent Process. Native Methods. Compilation to a Native Method. Compilation to the JIT Interface. 3. Hardware Architecture. Worst-Case Execution of One Instruction. Worst-Case Scenario. Practical Measures. Management of Troublesome Hardware. Managing Demand Paging. Managing DMA. Managing Cache. Managing Address Translation Cache. Managing Interrupts. Effects on the JVM. 4. Garbage Collection. Reference Counting. Basic Garbage Collection. Mark and Sweep. Defragmentation. Copying Collectors. Incremental Collection. Incremental Garbage Collection in Practice. Generational Garbage Collection. Intergenerational References. Large Object Store. Real-Time Issues. 5. Priority Scheduling. Scheduling Terms. Execution Sequences. Preemption. The Seductive Charm of Nonpreemptive Scheduling. Fixed versus Dynamic Priority. Priority Inversion. Why 32 Priorities? Problems with Priority Scheduling. 6. Scheduling with Deadlines. Underlying Mechanism. Scope of the Scheduler. Some Systems. Earliest Deadline First (EDF). Least Laxity. Periodic Scheduling. Aperiodic Servers. Handling Overload. Timing Is Usually Probabilistic. 7. Rate Monotonic Analysis. Theorems. Liu and Layland's Theorem. A Graphical Approach. Lehoczky, Sha, and Ding's Theorem. Restrictions. Independent Tasks. Deadlines Equal to Periods. Multiprocessor Systems. 8. Introduction to the Real-Time Java Platform. A Brief History of Real-Time Java. Major Features of the Specification. Threads and Scheduling. Garbage Collection. Asynchronous Event Handlers. Asynchronous Transfer of Control. Memory Allocation. Memory Access. Implementation. RTSJ Hello World. 9. Closures. The Language Construct. Java Closures. Closure Structure. Closures in the RTSJ. Limitations of Closures. Readability. Local Variables. Constructors. Nesting. 10. High-Resolution Time. Resolution. The "clock". HighResolutionTime Base Class. Absolute Time. Relative Time. Rational Time. 11. Async Events. Binding a Happening to an Event. Basic Async Event Operation. Async Events without Happenings. Time Triggering. Fault Triggering. Software Event Triggering. Implementation Discussion. 12. Real-Time Threads. Creation. Scheduling. Inversion Handling. Fixed Priority. Feasibility. Periodic Threads without Handlers. Feasibility Analysis. Periodic Threads with Handlers. Interactions with Normal Threads. Changing the Scheduler. 13. Non-Heap Memory. The Advantage of Non-Heap Memory. The Allocation Regimes. Rules. Mechanisms for Allocating Immortal Memory. Mechanisms for Allocating from Scoped Memory. Allocation Time. Creating Scoped Memory. Allocation Mechanisms. Finalizers. Using Nested Scoped Memory. The Scope Stack (Tree). The DAG. Practical Use of Nested Scopes. Every Nested Scope Involves Two Memory Areas. Pitfalls. Using executeInArea. Using Standard Classes. Using Shared Scoped Memory. The Scope Stack Revisited. Scope Portals. Fine Print. Quick Examples. 14. Non-Heap Access. Interaction with Scheduler. Rules. Samples. Final Remarks. Notes. 15. More Async Events. Async Events and the Scheduler. The createReleaseParameters Method. Bound Async Event Handlers. Async Event Handlers and Non-Heap Memory. No-Heap Event Handlers vs. No-Heap Threads. Scheduling. Minimum Interarrival Time. Async Event Handlers and Threads. Special Async Events. 16. Reusing Immortal Memory. Using Fixed-Object Allocators. Carrier Objects. Limitations. Recycling RT Threads. Recycling Async Event Handlers. 17. Asynchronous Transfer of Control. Thread Interrupt in Context. Asynchronous Interrupt Firing. The Timed Class. The interrupt Method. The fire Method. In Summary. Replacement Rules. Rules for Async Exception Propagation. Oblivious catch. Nonmatching doInterruptible. Matching doInterruptible. Internals. Application Handling for Asynchronous Interrupts. Noninterruptible Code. Special Issues for Synchronized blocks. Legacy Code. Use of ATC for Thread Termination. 18. Physical Memory. Physical and Virtual Memory. Physical Memory Manager. Memory Type. Removable Memory. Immortal Physical Memory. Scoped Physical Memory. 19. Raw Memory Access. Security. Peek and Poke. Get/Set Methods. Mapping. The RawMemoryFloatAccess Class. 20. Synchronization without Locking. Principles of Wait-Free Queues. Constructors. Common Methods. The Wait-Free Write Queue. Methods. Sharing the Wait-Free Queue. The Wait-Free Read Queue. The Extra Constructor. Methods. The Wait-Free Double-Ended Queue. Methods. No-Wait Queues and Memory. Implementation Notes. 21. Recommended Practice. Powerful and Easy-to-Use Features of the RTSJ. Real-Time Threads. Periodic Threads. Asynchronous Event Handlers. High-Resolution Time. Happenings. Very Powerful and Dangerous Features of the RTSJ. Simple. Leaky. Viral. Very Powerful and Finicky Features of the RTSJ. Scoped Memory. No-Heap Asynchronous Event Handlers. No-Heap Real-Time Threads. Asynchronously Interrupted Exceptions. Selection of Priorities. Index.