Designing and Implementing a Software Toolkit for Real-Time Java Platform

Author
SuChaoYun
Advisor
TuShiLiang
School
Fudan University
Major
Computer System Architecture
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2010
Downloads
78
Citations
1

Request the full text

Abstract

With the development of pervasive computing and mobile computing, embedded system development and application receive much concern. Finding efficient methods and tools to improve the development process of embedded system are required. Compared with traditional embedded languages, such as C/C++ and assemble, Java with its several advantages becomes more and more popular in embedded fields, such as pure object-oriented, safety, platform-independent, and language level concurrency and so on. And Sun has published several Java embedded techonlogies which also promote the Java’s development in consumer electronic devices.Most of the embedded systems should meet some real time requirements.The standard Java has some insufficiencies for real-time system, such as dynamic loading and analyzing classes, garbage collector, Just-In-Time compile, no restrict on thread’s priority and so on. These factors can cause latency and uncertainty. So the execution time of a task cannot be predicted. But for real-time system, especially for hard real-time, the prediction of tasks execution is very important. In order to fill in the vacancy, Sun, IBM and Microware proposed the RTSJ (Real-Time Specification for Java) which defines how to act in real-time system for Java. It provides a reference to implement a real-time Java platform.With the release of RTSJ, several different implementations of real-time Java platform are proposed. Based on the National Science Foundation project---Highly Credible Computation Platform (SoPC) research for real-time system (code: 60703106)[1].The research team proposed a real-time Java platform which supports RTSJ.This paper mainly analyzes the related problems and techonologies focused on Java real time embedded system;and supports a software toolkit for this real-time Java platform.A real-time platform consists of executing engine and real-time software environment which includes library and operating system. Executing engine as the most important part can be implemented in different ways.Such as Interpreter, Ahead-Of-Time compile, JIT, Java hardware accelerator and Java processor. Among these methods, our research team chooses the Java processor as the executing engine (Jpor32),due to its high efficiency, small memory footprint and low power consumption. Program execution is divided into two steps——preprocessing and executing. The class preprocessor is one of the important tools. It converts a standard Java class file to an image file which can be downloaded to the Java processor (Jpor32) later. Operations that impact real-time performance such as classes’ loading and resolving are pre-processed by this preprocessor. As a result, it reduces the complexity of the real-time Java processor greatly. Jpor32 is a 5-stage pipeline Java processor supporting most Java byte codes and several extended codes.A real-time software enviorment is essiential to real-time platform. This paper designs and implements a class library including standard library based on CLDC and extended real-time library based on RTSJ. Real-time operating system is our future work.This paper also discusses some techonologies of real-time gabage collector which is part of real-time OS.In order to gurantee the real-time performance of Jpor32,this paper using a static method combined with the processor’s characeterisitics analyzes the worst case execution time (WCET) and reaches a conclusion.

Table of contents

Abstract 5-7 Abstract 7-9 Chapter 1 Introduction 9-14 1.1 Research background and significance of 9-11 1.2 The research objectives 11-12 1.3 This paper is structured arrangements 12-14 Chapter 2, Java Virtual Machine Specification 14-24 2.1 Java Class files 14-18 2.1.1 Java Class file format 14-15 2.1.2 constant pool 15-16 2.1.3 the Class files in the field 16 method in 2.1.4 the Class files 16-17 2.1.5 property 17-18 2.2 Java virtual machine 18-20 2.2.1 Java Virtual Machine architecture 18-19 2.2.2 class loader subsystem 19-20 2.3 garbage collection 20-22 2.3.1 garbage collection algorithm 20-21 2.3.2 Sun J2SE 6 HotSpot's garbage collection 21-22 2.4 Java virtual machine instruction set 22-24 Chapter 3, embedded Java, and real-time Java 24-39 3.1 Personal Java and Embedded Java 24-25 3.2 J2ME specification 25-26 3.2.1 CLDC 25-26 3.2.2 CDC 26 3.3 Java Card Platform 26-27 3.4 real-time Java Specification 27-35 3.4.1 Real-Time Systems 27-28 3.4.2 Real-Time Java Specification 28-35 3.4.2.1 real-time threads 29-30 3.4.2.2 scheduling is 30-31 3.4.2.3 synchronization mechanism 31 3.4.2.4 Memory Management 31-33 3.4.2.5 asynchronous event handling 33-34 3.4.2.6 asynchronous transfer of control 34-35 3.4.2.7 clock and timer 35 3.4 real-time garbage collection algorithm 35-38 3.4.1 Based on the work of garbage recycling 35 3.4.2 Time-based garbage recycling 35-36 3.4.3 Henriksson garbage collection 36-38 3.5 Summary 38-39 real-time Java processor, Chapter 4 Jpor32 39-45 4.1 Jpor32 system structure 39-42 4.1.1 five pipeline 39-40 4.1.2 operand stack and local variables 40-41 4.1.3 Jpor32 register 41-42 4.2 memory image formats and memory distribution 42-44 4.3 Jpor instruction set 44 4.4 Summary 44-45 Chapter 5 class preprocessor 45-58 5.1 pretreatment process 45-46 5.2 class organizations 46 5.3 preprocessor directives 46-53 5.3.1 new directive 47-48 5.3.2 anewarray instruction 48 5.3.3 getstatic instruction 48-49 5.3.4 putstatic instruction 49 5.3.5 getfield instruction 49-50 5.3.6 putfield instruction 50 5.3.7 Idc / ldc_w instruction 50-51 5.3.8 iinc instruction 51 5.3.9 branch instructions 51 5.3.10 invokevirtual instruction 51-52 5.3.11 invokespeical instruction 52-53 5.3.12 invokestatic instruction 53 5.4 pretreatment results and analysis 53-57 5.5 Summary 57-58 real-time Java platform class library Chapter 6 58-83 6.1 standard Java class library 58-68 6.1.1 package java.1ang 58-62 6.1.2 package java.util 62-65 6.1.3 package java.io 65-68 6.2 real-time Java class libraries 68-82 6.2.1 scheduling API 69-73 6.2.2 real-time threads API 73-74 6.2.3 memory model API 74-76 6.2.4 Synchronization Control API 76-77 6.2.5 Real Time Clock API 77-79 6.2.6 unusual event API 79-80 6.2.7 asynchronous control transfer APIs 80-82 6.3 Summary 82-83 Chapter 7 WCET analysis 83-95 7.1 WCET analysis 83-85 7.1.1 data dependent control flow (Data-Dependent Control Flow) 83-84 7.1.2 Context-sensitive execution time 84 7.1.3 time exception 84-85 7.2 WCET technology 85-88 7.2.1 time analysis method 85-86 7.2.2 static method 86-88 7.2.3 based on the measurement method 88 7.3 Jpor32 the WCET analysis and results 88-94 7.4 Summary 94-95 Chapter 8 Conclusions and Outlook 95-98 the Appendix : Jpor32 the instruction set . 98-103 References 103-105 thank 105-106

Related dissertations

  1. The Research and the Design of the Java Processor for RTSJ
    ChengZuo ·Jiangnan University ·2008 ·Master's thesis
  2. A RTSJ-based Java Processor for Embedded Real-Time Systems
    ChaiZhiLei ·Fudan University ·2006 ·Doctoral dissertation
  3. Research and Development of Real-time Middleware Based on Java
    YinZhenZhong ·Shenyang University of Technology ·2010 ·Master's thesis
  4. Research on Key Technologies of Watermark-aware Java Secure Runtime Environment in the Cloud
    YuZhiWei ·Tsinghua University ·2013 ·Doctoral dissertation
  5. Design Heterogeneous Multi-core System Based on Soclib Platfrom and Performance Testing
    FanXiangZuo ·Harbin Institute of Technology ·2012 ·Master's thesis
  6. Research of Sparc-rtems Driving Technology for Java Accelerating System
    WangYongShuang ·Harbin Institute of Technology ·2012 ·Master's thesis
  7. The Benchmark Test and Performance Optimization of Java Processor Heterogeneous Multi-core Systems
    LiXu ·Harbin Institute of Technology ·2012 ·Master's thesis
  8. Research on Visual Computing Model of Immune System
    CaoXinXue ·Donghua University ·2014 ·Master's thesis
  9. Design Ofthe Embedded Real-Time Java Platform and Application in Image Processing
    GaoZhenHua ·Jiangnan University ·2012 ·Master's thesis
  10. The Design of Thetime Predictable Embedded JavaCPU
    YangFan ·Jiangnan University ·2012 ·Master's thesis
  11. The Research and Implement of Distributed JVM Based on Thread Migration
    ZhouChong ·Zhejiang University ·2013 ·Master's thesis
  12. The Adaptive Optimizations in Java Virtual Machine
    ZouQiong ·University of Science and Technology of China ·2008 ·Doctoral dissertation
  13. Research on Program Execution Model Based on Runtime
  14. Research on Real-Time Algorithms of Garbage Collection for Embedded Real-Time System
  15. The Research on the Porting of Java Virtual Machine (JVM) to the ARM-Linux Platform
  16. Design and Study of Robot Controller Software System Based on Java Virtual Machine
    ZhuQiuYun ·Central China Normal University ·2006 ·Master's thesis
  17. Research and Realization of a Kind of Java Virtual Machine on AT91SAM7S256 System
    ChenLiang ·Central China Normal University ·2006 ·Master's thesis
  18. Research and Implementation of Embedded JVM
    ChenHaiDong ·East China Normal University ·2008 ·Master's thesis
  19. The Research of Bottom Layer Middleware in New Type Integrated Services Terminal
    TanZuo ·Chongqing University ·2007 ·Master's thesis
  20. Digital TV set-top boxes based on research and implementation of the Java platform