The organizational structure of the operating system should include the organizational structure of the modular structure, interfaces, and runtimes.
Modular structure: Describes how the different functions of the constituent system are grouped and interacted;
Interface: Closely related to the internal structure of the system, provided by the operating system to users, user programs or upper-level software use;
Organization of the runtime: defines the types of entities that exist during execution and how they are invoked.
In the design of the operating system, there are 4 methods of design:
Integrated structure
Features: Operating system is highly efficient, but this structure is difficult to understand, difficult to maintain, verify its correctness is very difficult.
Modular construction
Advantages: The system can be implemented as an abstract data type or an object method, which facilitates the understanding and maintenance of the operating system.
Disadvantage: There is a potential for performance degradation.
Extensible Kernel Architecture
Features: This architecture supports two new directions in the operating system: one is to establish operating systems with different policies on a single hardware platform, and the other is a micro-kernel operating system.
Hierarchical structure
For modern operating systems, the hierarchical constraints are too restrictive, and this approach is seldom used to construct the operating system. Then in the design of the operating system is, layered thinking is worth borrowing and reference.
What kinds of structures can you consider when designing an operating system?