OS architecture
What isOS?
- Not solvable.
- Goals:
- User goals: easy to learn, reliable, safe and fast.
- System goals: easy to design, implement and maintain, flexible.
- Principle:
- Policy: OS undertake
- Mechanism: application undertake
- Policy mechanism devided.
Simplestructure
- Dos
- Unix
- Microkernel
- Kernel: LPC (hub, connect server); HAL
- Example: Mach
- IPC: between threads via ports -> 函数调用 bottleneck
- Synchronous IPC
- Send, wait
- Send copy to kernel; kernel copy to wait
- Rendezvous model
- Kernel copy send's message to wait
- Must multi threads
- Multi threads -> 轮询 select
- Synchronous IPC
- Memory object management -> virtual memory
- Device support using IPC
- User multipocessing: user threads map to same kernel thread
- Multicomputer support -> 集群 task 调度
- Mach 2.5 -> NeXT, Encore, OSF
- IPC: between threads via ports -> 函数调用 bottleneck
- Not take over the world
- Hardware standardization
- Software standardization
- Exokernel structure
- OS devided from critical path: kernel never provide any service
- Example
- Program visit hardware directly
- Library OS can be customized for applications ->LKL
- Customer-support issues