Operating System-Kickoff, system-kickoff
Next, I will write a series of Operating System articles. Today, I will start. Main content of this article:
I. What is an operating system? 1.1 the operating system is an abstraction of hardware)
One of the important functions of the operating system is to hide the hardware, and display the hardware functions with beautiful and highly abstract interfaces.
The location of the OS in the entire computer system is shown in.
Abstraction is the core concept of management complexity. The operating system abstracts the hardware, which frees our programmers from a variety of hardware, program applications using the youmei interface provided by the operating system. Modern people use computers every day. They feel that the operating system is intended for humans. In fact, they are wrong. The operating system is intended for applications rather than for humans. The abstraction made by the operating system reduces the complexity of the application.
1.2 The operating system is a Resource Manager
A large number of applications run on the operating system at the same time. These applications need to operate on different resources, such as I/O, CPU, and Memory. How to allocate resources to these applications, what is the allocation policy, how to ensure the integrity of these resources if resources are operated by different applications at the same time, and so on, these are all problems to be solved by the operating system.
For example:
Ii. core concepts of the Operating System
The article begins to describe that the operating system is an abstraction of hardware, so the core concepts of the operating system are the abstraction of specific physical hardware. When this series of blog posts end up with the following content.
2.1 process (thread)
A process (thread) is the CPU abstraction of the operating system.
2.2 virtual memory (address space)
Virtual Memory is the abstraction of the operating system to physical memory.
2.3 files
Files are the abstraction of the operating system for physical disks.
3. program = Data Structure + Algorithm
Program = Data Structure + algorithm can be understood through the operating system.
3.1 Data Structure
Data structure is abstract. in the operating system, because of abstraction, the application only needs to focus on the threads, processes, and files, rather than the implementation behind them, you don't have to worry about the possible changes in these implementations. In the usual application programming, we advocate interface-oriented programming, which is the data structure and of course abstract.
There are also a variety of advanced languages, such as Java and C #, which are more abstract. The programming syntax is data structure to some extent.
3.2 Algorithm
Algorithms are strategies, that is, trade-offs and trade-offs. We are in a world with limited resources. This is a better understanding. In the operating system, this compromise and trade-offs fully reflect