Analysis on MINIX process management
- Author
- LiZuo
- Advisor
- XieShengZhi
- School
- Southwestern University of Finance and Economics
- Major
- Finance
- Classification
- TP316.8 Network operating system
- Degree
- Master's thesis
- Year
- 2001
- Downloads
- 450
- Citations
- 0
Abstract
Operating system is built directly on the hardware platform for the user software provides extended virtual machines and manage system resources system software. From the last century since the 1950s, the operating system has experienced from lower to higher, from simple to complex process of development. A wide variety of modern operating systems, both for PC, UNIX, WINDOWS, LINUX and other systems, there are also applied to the mainframe, image processing, military and other fields of the system. Although they vary widely, but as a modern operating system, they all have a common characteristic, that is, support for multi-tasking. Multitasking requires a computer at the same time be able to handle many different tasks. In order to achieve the requirements of multi-tasking, computer scientists in the operating system, the introduction of process mechanisms, processes mechanism is a multi-tasking operating system is the core and foundation, it may be said, there is no process mechanism, there is no multi-tasking. The operating system process management analysis and discussion of both the operating system will help us to have a complete and clear understanding, but also for our future development of its own operating system and lay a solid foundation. MINIX is Andrew S.Tanenbaum professor in the early 1980s with reference to earlier public version of UNIX developed to run on a PC, multi-tasking, multi-user operating system. Why should I choose MINIX as object of analysis in this paper do? . This is mainly because MINIX has the following characteristics: 1.MINIX of advanced structure. Although MINIX is a reference to the UNIX evolved, but Professor Tanenbaum MINIX was in preparation, the use of a single structure with different UNIX Client / Server structure, Client / Server architecture enables the various parts of MINIX package is good, easy expansion and transplantation, while MINIX can also make use of sophisticated network protocols such as TCP / IP, to develop it as a distributed operating system. 2 can develop a practical use MINIX operating system. Although Professor Tanenbaum MINIX has always insisted on a simple and non-availability to meet the learning needs of students, but that does not explain the MINIX is just a laboratory greenhouse flower. Previous paragraph rage LINUX, is based on the MINIX evolved. 3.MINIX openness. The author, Professor Tanenbaum MINIX is not for commercial purposes and the development of this system. From the date of its birth, its source code is open. This makes the global computer enthusiasts, are available through on MINIX source code lt; WP = 3 gt; analysis of the codes, I learned the true meaning of the operating system implementation. Today has been widely used in WINDOWS, UNIX and other systems, software manufacturers provide only object code, without providing the corresponding source code, which makes analysis impossible to start. 4.MINIX able to run on a PC. If it is only run on the mainframe such as IBM370 operating system, the author simply unconditional analysis, because the price is much higher than the mainframe ordinary PC. 5.MINIX is a multi-tasking, multi-user operating system. Multi-tasking, multi-user is a modern operating system should have the basic features. MINIX not prefer Intel processors, which in addition to support for Intel Corporation since 8086 since all processors, but also support like the Motorola M68000, Sun's Sparc, Apple's Macintosh and other non-mainstream processors. Why do I want to use based on Intel processors MINIX analyze it? Here are the following reasons: 1.Intel fact that monopoly. In today's microprocessor market, Intel's product indisputably in a de facto monopoly, and represents the industry standard, which allows the user to choose its products almost exclusively. Although the market has a few companies such as AMD's products, but these companies in order to GM products, the basic design of the system processor and Intel as the company's products. The author is a machine with Intel Pentium 3 processor. (2) the information is easy to find an Intel processor. The fact that Intel's monopoly position also makes piles of information about it, and such as the M68000 processor and other non-mainstream information Liao if the stars. This paper will adopt the principle of gradual and orderly progress, step by step expand on MINIX process management system analysis. Process management in accordance with its own characteristics, the author of this article is divided into three chapters: a first chapter discusses the structure of MINIX. Operating system architecture is not only operating system design should first consider the issue, but it also determines the operating system process management of specific implementation mechanism. In this chapter, the author first through UNIX and comparative analysis of the structure of MINIX, MINIX introduced the Client / Server structure; then through the two operating systems to achieve due to the different mechanisms of process management, brought about by the implementation of the different system calls detailed comparative analysis, a detailed description of the advantages and disadvantages of the two structures, and expressed the author of the Client / Server structure favored reason. lt; WP = 4 gt; 2. second chapter discusses the system initialization process. System initialization process is to prepare for normal system operation flow executed by the CPU. In accordance with the system initialization has gone through two stages, the author of this chapter in turn divided into two parts. The first part is a guide, guide is essential for each operating system, but it does not directly related to process management, why the author takes great lengths to analyze it too? Here are three reasons, (1) boot the operating system from the peripheral into memory, and start the operating system kernel to run; (2) guide for the course, including process management system to establish a necessary part of the environment, but it also is kernel initialization part of the process environment to create and deliver the necessary system environment parameters; (3) of the operating system some renovation work is inseparable from the boot part of the transformation. Eg: I hope currently only supports the ISA bus MINIX can support PCI bus, it is inseparable from the boot part of the changes. In this section, the author also analyzed the boot MINIX specific boot command and its corresponding lexical processing mechanism. The second part is the kernel process environment initialization process, when the guide ends, it makes the CPU initialization process environment from the kernel part of the first instruction (the operating system can also be considered the first instruction) at the beginning of execution. Kernel initialization part of the process environment is MINIX process management system. During its execution, in order to run the operating system, it creates and installs a GDT (Global Descriptor Table), IDT (Interrupt Descriptor Table) and the system only task, and initialize the kernel process control table, and it also in the CPU execution flow into the kernel process scheduling and switching section before establishing corresponding CPU environment, such as shielded from external hard interruption. The author?
Table of contents
Foreword 12-14
Chapter : MINIX structure 14-19
Chapter : System initialization process 19-42
first sections: boot 19-29
section : kernel process environment initialization process 29-42
Chapter III : Process scheduling and switching 42-71
Section : MINIX process scheduling mechanism 42-43
Section : MINIX on external hardware interrupt handling 43-55
III: MINIX system soft interrupt handling 55-65
IV : MINIX on the external clock interrupt handling 65-71
References 71-72 < br /> Postscript 72