The operating system is not so difficult, you also benefit from zero to develop a fully-equipped operating system

Speaking of the operating system, we all think it is a huge project, super complicated, unattainable. Now we have a bold idea, a person can not be the first line of code from the code, the operating system developed a perfectly formed it? The answer is yes, but all the major functions of the operating system specific commercial operating system (of course not all of the features of the commercial operating system).

We know that commercial operating systems or open-source Linux operating system, multi-million lines even billions of lines of code, scale, people can not imagine. Microsoft Windows development team as many as several thousand people, while the Linux kernel developers are also involved in one thousand level. Of course, we are not to develop such a large-scale operating system, our goal is to develop a multi-process and have the scheduling, memory management, file systems, and interrupt management functions of the operating system . This already has the core functionality of the operating system.

In fact, there are many ways to accomplish the above tasks, and these methods are practical operation type, according to the operation as long as it can develop a micro operating system. Also need to note is that these methods and classes to explain the Linux kernel is different. The latter can only make you understand the implementation of the Linux kernel, and methods described herein can allow you to develop a file system from scratch. Here we come in this one.

Operating system - the truth Restore

This book is very appropriate name, operating system really is an elephant, if you can not see the whole picture, there will be a feeling Mangrenmoxiang. This book is called an entry point to lead us to understand every aspect of the operating system, every detail from different angles.

 

The operating system is not so difficult, you also benefit from zero to develop a fully-equipped operating system

Figure 1 book cover

 

Each part of the book can be developed to run in a virtual machine bochs above. From the simplest dozen lines of code, has been to complete the operating system thousands of lines of code, each instance can be compiled to run in a virtual machine bochs. Ultimately, the book is to achieve a simple but complete operating system, the contents include: MBR, loader, memory management, interrupt management, file management, system calls, multi-process switching (kernel and user mode) and so on.

Objectively speaking, this book entirely from the practice, basically said that the hands, the code out of the ranks of his party, to explain clearly. Another feature of this book is to complete all of the code in this book can be found, so we can install the author's ideas compiled and practice.

Xv6 operating system

Xv6 by the Massachusetts Institute of Technology (MIT) the purpose of teaching a curriculum development project operating system operating system. Xv6 standard ANSI C is re-implemented in the x86 processor Unix Sixth Edition (Unix V6, commonly referred to as direct V6). The operating system is not only the source code, and supporting the e-books and instructional videos. The following is an electronic book directory, specific content of an electronic book may be the present number of private letters obtained.

The operating system is not so difficult, you also benefit from zero to develop a fully-equipped operating system

Figure 2 Xv6 of Contents

30 days self-made operating system

This book is the author of Japan Kawai show real masterpiece, the biggest feature of the book is not only to develop an operating system, but also a graphical interface. Serious and rigorous Japanese surely you have heard. After've read the book, you will really appreciate the work of the Japanese rigorous. The book also has a complete source code, readers can attend school and practice. According to the author's words, 30 innocent can develop a graphical operating system.

 

The operating system is not so difficult, you also benefit from zero to develop a fully-equipped operating system

3 OS made 30 days

A specific example the following book, you can see a very rudimentary form.

 

The operating system is not so difficult, you also benefit from zero to develop a fully-equipped operating system

FIG 4 GUI OS

 

 

Tsinghua University courses on operating system

The bottom pressure is to learn the treasure of the operating system. Tsinghua University Professor Chen Yu a set of operating system programs, and developed a similar operating system Xv6 of (uCore), the source code can be downloaded from github. The operating system documentation set is very wide, not just source code and supporting e-books, and free video tutorials .

The operating system is not so difficult, you also benefit from zero to develop a fully-equipped operating system

5 Operating System Experiment guide

This number may be obtained private letters above partial source code books and the link information.

Micro letter: itworld123    private letter contents:  operating system

Guess you like

Origin blog.csdn.net/shuningzhang/article/details/90544087