摘要
在分析现有实时Java规范和开发模型局限性基础上,提出了一种面向嵌入式高可靠实时系统开发的CER-实时Java简化模型。该模型采用三层开发结构,即创建层、执行层和回收层。创建层完成线程和对象的分组创建和启动,执行层执行被启动的线程,回收层负责垃圾定期回收。其中,线程分组创建、定期垃圾回收机制以及通过一部分类的简化定义等,既能保证程序运行的可预测性,同时又能降低内存使用量和简化模型复杂性。
Based on the analysis of the limitations of existing Real Time Specification for Java (RTSJ) and developing models, we designed a CER-Java developing model, which can be used to develop embedded high-reliability real-time systems. The model adopted a three-layer developing architecture, including Creation Layer, Execution Layer and Recycle Layer. The Creation Layer created and started various groups of threads and objects. The Execution Layer executed threads that had been started. The Recycle Layer recovered the memory that was no longer in use. The practice shows that the mechanisms, such as the three-layer developing architecture, creating various groups Of threads and the periodic garbage collection, etc, not only guarantee the predictability of a system, but also reduce memory usage and simplify the complexity of model.
出处
《计算机应用》
CSCD
北大核心
2008年第5期1303-1306,共4页
journal of Computer Applications
基金
浙江省自然科学基金资助项目(Y107321)