Memory, Responsible for storing runtime code and data.CPU, The central processing unit, Responsible for executing programs and processing data operations.Bus, Responsible for connecting all kinds of other devices, It is the basis of other equipment work.Let's first look at the hardware resources, as follows : Ĭomputer resources can be roughly divided into two types of resources, One is Hardware resources, One is Software resources. Since the kernel is the manager of resources, Let's first look at the resources in the computer, Then through the induction of resources, We can deduce what should be in the big black box of the kernel. įrom an abstract point of view, The kernel is the manager of computer resources, Of course, managing resources is to let applications use resources. However, As the developer of the black box of the kernel, We need to achieve it, You must design it first, But to design it, You have to figure out the kernel first what are you having?. What's in the black boxįrom a user and application perspective, What's in the kernel doesn't matter, What services can be provided is important, So the kernel is in the eyes of users and upper applications, Like a big black box, As for what's in the black box, How to achieve, Don't worry about it. Now let's figure out what's in the kernel, Then discuss how to organize them 、 What structure is used to organize 、 And compare the mature architecture, Finally, we design the kernel architecture we want. The complexity of a kernel is several orders of magnitude higher than that of a house, So we must design the kernel before developing it. For example, what structure is used, what's the material?, How to arrange the room, circuit Waterway, etc, Finally, draw the design drawings, Build according to the drawings step by step. You might think so, But it's hasty to think so, Develop operating system kernel ( Hereinafter referred to as the kernel ) It's like building a house, The house should be built well, Design first. What ? There is no actual function, Let's add more functions ? Hello OS Although it can make the computer run, But there is no actual function. The last blog implemented a simple kernel, Today we will introduce the structure and design of the kernel. This blog reference 《 Operating system combat 45 speak 》
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |