The Research for the Critical Techniques of the Embedded Real-time Java Virtual Machine
- Author
- LvZhiHua
- Advisor
- LiuYunSheng
- School
- Huazhong University of Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP312.1 Programming language ALGOL
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 266
- Citations
- 0
- Real-time Java
- embedded real-time Java virtual machine
- real-time thread scheduling
- real-time garbage collection
Abstract
As the technology of Java is applied in the real-time system, the real-time Java technology emerges. At the same time, higher requirements will be made on Java virtual machine, the platform of Java application, for the using of the real-time Java. Moreover, it also accelerates the research and development of the embedded real-time Java virtual machine.ARTs-OS is an embedded real-time operating system developed by Huaxiang Software Research and Development Centre. ARTs-JVM is a real-time middleware based on the system, used to support the real-time Java applications in embedded real-time environments.ARTs-JVM is composed of the class-loader, verifier, intializer, scheduler, garbage collector and the run-time environments. And the interpreter is the heart of the ARTs-JVM. Designing the runtime environment is the basis of the designing and realizing the ARTs-JVM, and it is also the basic guarantee of realizing the features of real-time for ARTs-JVM.As the basis of the Java’s characteristic and being independent of the platform, the class file includes a lot of information needed in run-time. Java virtual machine executes on stack. Whenever a thread is created, it will allocate a stack for the new thread. When invocating a method, a structure for stack frame is saved in the stack; the structure of Method is the basement of the execution of Java virtual machine, and the running process is also the process of invoking method.There are many critical technologies in designing and realizing the embedded real-time Java virtual machine, including real-time thread scheduling and embedded real-time garbage collection and so on.In the real-time scheduling, ARTs-JVM adopts the priority-driven preemptive scheduling module, ensuing the consistence with the ARTs-OS, in order to realizing the support for the thread in languages for Java. And it also adopts the mechanism of priority-inheritance to avoid the priority inversion produced by the Lock. In the embedded real-time garbage collection, ARTs-JVM reaches the blueprint in accordance with the features of the embedded real-time GC, exact, increasing and no fragment.
Table of contents
Abstract 4-5
ABSTRACT 5-9
1 Introduction 9-13
1.1 Introduction 9
1.2 Real JAVA technology overview 9-11
1.2.1 threads and scheduling 10
1.2.2 Memory Management 10-11
1.3 Current research 11
1.4 full text of the main content and organization 11-13
2 ARTS-JVM Overview 13-26
2.1 ARTS-JVM architecture 13-16
2.2 ARTS-JVM implementation process 16-18
2.3 ARTS-JVM runtime environment designed 18-24
2.3.1 Java class file format and the ARTs-JVM Representation 18-20
2.3.2 ARTs-JVM for Java stack structure 20-21
2.3.3 ARTs-JVM approach zone structure 21-23
2.3.4 ARTs-JVM thread structure 23-24
2.4 Summary 24-26
3 real-time thread scheduling 26-39
3.1 JAVA language support for multithreading 26-28
3.1.1 Java threads 26-27
3.1.2 thread's priority and scheduling 27-28
3.2 ARTS-JVM priority-driven scheduling policy 28-31
3.2.1 static priority scheduling strategy RMS 28-29
3.2.2 dynamic priority scheduling strategy EDF 29-30
3.2.3 ARTs-JVM 's scheduling policy and priority-driven model 30-31
3.3 ARTS-JVM thread scheduling , real-time multi- realization and analysis 31-38
3.3.1 ARTs-JVM thread scheduling real-time implementation of 31-33
3.3.2 ARTs-JVM real-time scheduling analysis 33
3.3.3 Java thread synchronization and locking mechanism in the ARTs-JVM implementation 33-37
3.3.4 ARTs-JVM 's priority inversion avoidance strategies 37-38
3.4 Summary 38-39
4 real-time garbage collection algorithm 39-52
4.1 basic garbage collection algorithm 39-42
4.1.1 reference counting algorithm 40
4.1.2 \
4.1.3 tag removal algorithm 41
4.1.4 generational collection algorithm 41-42
4.2 JAVA mechanism of dynamic memory limitations 42-44
4.2.1 \
4.2.2 Simple GC 43-44
4.3 embedded real-time garbage collection algorithm performance requirements 44-45
4.4 ARTS-RTGC on the ARTS-JVM implementation 45-50
4.4.1 ARTs-RTGC in Return-barrier realization 46
4.4.2 ARTs-RTGC debris processing 46-47
4.4.3 ARTs-RTGC value and reference in the separation strategy 47-48
4.4.4 ARTs-RTGC priority processing 48
4.4.5 ARTs-RTGC runtime analysis 48-50
4.5 Summary 50-52
5 Conclusion 52-54
Thanks 54-55
References 55-60
Appendix 1
papers published during the study for a degree directory 60
Related dissertations
- A RTSJ-based Java Processor for Embedded Real-Time Systems
- Predictability Framework of Real-time Java for Limited Resources of Real-time System
- Research and Application of real-time Java
- CSP-based real-time Java specification extension study
- A Research on Worst-Case Execution Time Estimation of Object-Oriented Programs
- A RTSJ-based Java Processor and API Implementation for Embedded Real-Time System
- The Research and the Design of the Java Processor for RTSJ
- The Research on Real-Time Java Platform
- Embedded Real-time Java Processor Research
- Research of Memory Management and Its Real-time Ability in JVM