Structure of OS
Structure of OS
Advantages:
Faster execution as everything runs in a single address space.
Simple design with fewer layers.
Disadvantages:
Harder to debug and modify due to tight coupling.
Poor modularity, making it difficult to extend features.
---
2. Layered Structure
The OS is divided into different layers, each providing specific
functionality.
Each layer interacts only with the one above and below it.
The lower layers handle hardware-level operations, while the
upper layers provide user-level services
Example of Layers:
1. Hardware (Layer 0) – Directly interacts with physical devices.
Advantages:
Modular design, making it easier to debug and update.
Improved security as layers can be protected from unauthorized
access.
Disadvantages:
Slower performance due to multiple layers.
Designing an ideal layered OS is complex.
Example OS: THE (Technische Hogeschool Eindhoven) OS, MULTICS.
---
3. Microkernel Structure
Only essential services (such as process management, memory
management, and inter-process communication) run in kernel
mode.
Other services (such as device drivers and file systems) run in
user mode.
Inter-process communication (IPC) is used to communicate
between modules.
Advantages:
Better security and stability since most services run in user
space.
Easier to update or modify specific components without
affecting the kernel.
Disadvantages:
Slower due to additional communication overhead.
More complex design compared to monolithic kernels.
---
4. Hybrid Kernel Structure
A combination of monolithic and microkernel designs.
Some critical OS functions run in the kernel (for efficiency),
while others are in user space (for modularity).
Advantages:
More efficient than microkernels.
More modular than monolithic systems.
Disadvantages:
Can still be complex to implement.
May have some security vulnerabilities.
Advantages:
Extensibility: New features can be added without modifying the
kernel.
Improved maintainability.
Disadvantages:
Requires careful module management.
Still not as secure as microkernels.
---
6. Exokernel Structure
The OS provides minimal services, allowing applications direct
access to hardware resources.
Unlike microkernels, it does not enforce strict hardware
abstractions.
Advantages:
Extremely lightweight and fast.
Applications have more control over hardware.
Disadvantages:
Difficult to program as applications must handle hardware
interactions.
Lack of standardization.
---
Comparison of OS Structures
---
Conclusion