Research on Designing and Implementing Java Operating System
- Author
- LiXu
- Advisor
- LuKai
- School
- National University of Defense Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP316 Operating system
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 234
- Citations
- 4
- Ubiquitous Computing
- process soft-isolation
- full system garbage collection
- Java objects tracing framework
- Hardware Abstract Layer
- dynamic compiling engine
- Junicorn prototype system
Abstract
With the network technology developing rapidly, people inquire more and more about ubiquitous computing. The traditional technology which combines operating system and midware together can not satisfy the need of ubiquitous computing. Ubiquitous computing requires a new kind of operating system which is both platform-independent and highly-secure. Using Java language to implement this type of operating system not only can make the system platform-independent, but also can solve safety threats such as buffer-overflow-attack. Using Java to implement an operating system will bring us a lot of advantages, also it will introduce some challenges. This thesis deeply studies the architecture design of Java operating system, behavior rules of Java objects, full system garbage collection algorithm and the implementing technology of Java operating system.The architecture design is the basic of operating system technology. According to the features of Java language, this thesis designs the architecture of Java operating system, under the new architecture, studies the technology of software-isolation among processes which based on the JTOC (Java Table of Contents) can define the memory and interface border. In order to make the system memory management secure and efficient, this thesis put forwards the idea which should integrate the garbage collection and system management together to implement full-system garbage collection.Life behavior rules of Java objects can provide important evidence for the design of garbage collection algorithms, but the analysis of Java program behavior using data which was gathered more than ten years ago and is not suitable for current applications because of the differences in hardware and software. This thesis designs a new framework and implements E-Merlin tracing algorithm to trace the behavior of every Java object. After using this framework to trace programs in SPECjvm98, we discover two basic rules about Java objects. First, Java objects typically distribute equally in five categories and in each category, broader objects account for large percents. Second, the structure of Java objects in memory is just like a broad fat-tree which is flat. There are a lot of objects directly attach to the root object.All of garbage collection algorithms are designed for processes currently, not for operating systems. To use them directly as the garbage collection algorithms of operating system will be inefficient, because they could not cooperate with the mechanism of memory management effectively. This thesis deeply studies the principle of four classic garbage collection algorithms (reference count, mark-sweep, semi-space and generation algorithm) and two new algorithms (train and mark-copy algorithm), and analyses the advantages and shortages of every algorithm. Using the principle of Mark-Copy algorithm and behavior rules of Java objects, this thesis designs and implements a new full system algorithm named FSMC. According to the test results, FSMC improves the performance by 20% compared with Mark-Copy, which is very efficient.This thesis implements a prototype of Java operating system named Junicorn on the X86 platform. The hardware abstract layer of Junicorn, which is implented in C and assemble language, accomplishes system booting and the initialization of hardware, provides basic hardware control and interrupt management service for micro-kernel. The micro-kernel of Junicorn implements the dynamic compiling engine and full system garbage collector basing on JikesRVM and the generation garbage collection algorithm, designs interrupt and exception service framework for the system. Now Junicorn supports keyboard and character output, can run testing programs of SPECjvm98 on Huasuo-EPC.
Table of contents
Abstract 10-12
ABSTRACT 12-14
first chapter 14-20
1.1 Background 14-17 <br / > 1.1.1 topic background 14-15
1.1.2 related research 15-17
1.2 this work 17-18
1.3 paper structure 18-20
Chapter Java operating system architecture design 20-27
2.1 Java language features 20-21
2.1.1 type safety 20
2.1.2 platform independent 20
2.1.3 garbage collection 20-21
2.2 system of modern operating systems structure 21-22
2.2.1 single core structure 21
2.2.2 microkernel architecture 21-22
2.3 Java operating system architecture features 22-25
2.3.1 single Address microkernel 22
2.3.2 process soft isolation technology 22-24
2.3.3 system-wide garbage collection techniques 24-25
2.4 Java operating system Architecture 25-26
2.5 Chapter Summary 26-27
Chapter Java Object life behavior Rule 27-37
3.1 Java object behavior tracking statistics framework design 27-28
3.2 E-Merlin tracing algorithm 28-33
3.2.1 Merlin tracing algorithm deficiencies 28
3.2.2 E-Merlin tracing algorithm design 28-33
3.3 statistical analysis 33-36
3.3.1 Java object size distribution 33-34
3.3.2 Java object reference topology 34-36
3.4 Summary 36-37
Chapter automatic storage management operating system, Java technology 37-47
4.1 classic garbage collection algorithm 37-39
4.1.1 reference count 37
4.1.2 mark cleaning 37-38
4.1.3 semi- zone replication 38
4.1.4 generational collection 38-39
4.2 new garbage collection algorithm 39-41
4.2.1 train algorithm 39-40
4.2.2 Mark-Copy algorithm 40-41
4.3 FSMC system-wide garbage collection algorithm design 41-46
4.3.1 FSMC heap layout and management 41-42 <br / > 4.3.2 FSMC algorithm principle 42-45
4.3.3 performance measurement and analysis 45-46
4.4 Summary 46-47
Chapter dynamically compiled Java operating system engine technology 47-57
5.1 JikesRVM dynamic compiler technology 47-53
5.1.1 JikesRVM dynamically compiled technical analysis 47-50
5.1.2 JikesRVM performance analysis 50-53
5.2 embedded dynamic compilation engine design and implementation 53-56
5.2.1 dynamic compiler 53-54
5.2.2 runtime environment 54-56
5.3 Chapter Summary 56-57
Chapter Junicorn prototype system 57-72
6.1 X86 architecture overview 57-61
6.1.1 system registers 57-58
6.1.2 memory Management 58-60
6.1.3 interrupt and exception 60-61
6.2 Junicorn systems architecture 61
6.3 Junicorn system hardware abstraction layer in the design and implementation 61-68
6.3.1 system boot 62-64
6.3.2 system Initialization 64-67
6.3.3 interrupt exception Handling 67-68
6.4 Junicorn microkernel layer design and implementation 68-70
6.4.1 automatic memory management 68-69
6.4.2 interrupt service 69
6.4.3 device Manager 69-70
6.5 system construction and commissioning 70-71
6.5.1 Junicorn operating system mirroring build 70
6.5.2 of the Java -based system debugging techniques Simics 70-71
6.6 Summary 71-72
Chapter Summary and future work 72-74
Thanks 74-76
References 76-81
author during the study period academic achievements 81
Related dissertations
- Research on Self-Organizing and Cross Architecture of Human Computer Interaction System under Ubiquitous Environment
- Design and Implementation of U-learning System Based on Intelligent Sensing Technology
- Information Security Interaction Research on Mobile Devices in Ubiquitous Computing Environment
- Sitting Posture Sensing and Healthy Behavior Persuation
- Research on the Technology of Network Middleware in Ubiquitous Computing Environment
- Research on a Fast Chaos Encryption Algorithm Based on the Ambiguities of Blind Source Separation for EEG Signal
- Activity Recognition in Operational Process Under Ubiquitous Computing Environment
- Research on Activity Monitoring Based on Context Temporal Relation in Ubiquitous Computing Environment
- Research on Some Key Problems of Location Awareness in Wireless Sensor Networks
- Research and Implementation of Ubiquitous Learning System Based on Mobile Terminal
- Methods of Operational Environment Construction, Information Extraction and Service for U-manufacturing on Discrete Production Shop Floor
- Research on Several Key Issues of Collaborative Awareness in Ubiquitous Environment
- Research on Some Key Technologies of the Operating System Supporting Mobile Devices in Ubiquitous Computing Envrionment
- Research on I/O Management Supporting Transparent Computing Oriented Information Management
- Research on Management of Intelligent Terminal Services and Devices Supporting Ubiquitous Computing
- Research on the User-Centered Process for System Analysis, Modeling and Design
- Research on Model and Methodology of Adaptive Middleware for Ubiquitous Computing
- Module Design and CSP Analysis of Security Protocol of Ubiquitous Computing
- Research on Ubiquitous Sensing in Wireless Industrial Monitoring System
- Distributed systems in intelligent space