OS学习笔记:Lecture 3

本文探讨了操作系统的定义及其目标,包括用户目标(如易学性和可靠性)和系统目标(如易于设计与维护)。文章还讨论了操作系统的简单结构、内核(如Mach)和微内核的概念,以及其在多计算机支持、任务调度等方面的应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

OS architecture

 

What isOS?

  1. Not solvable.
  2. Goals:
    1. User goals: easy to learn, reliable, safe and fast.
    2. System goals: easy to design, implement and maintain, flexible.
  3. Principle:
    1. Policy: OS undertake
    2. Mechanism: application undertake
    3. Policy mechanism devided.

 

Simplestructure

  1. Dos
  2. Unix
  3. Microkernel
    1. Kernel: LPC (hub, connect server); HAL
    2. Example: Mach
      1. IPC: between threads via ports -> 函数调用 bottleneck
        1. Synchronous IPC
          1. Send, wait
          2. Send copy to kernel; kernel copy to wait
        2. Rendezvous model
          1. Kernel copy send's message to wait
          2. Must multi threads
        3. Multi threads -> 轮询 select
      2. Memory object management -> virtual memory
      3. Device support using IPC
      4. User multipocessing: user threads map to same kernel thread
      5. Multicomputer support -> 集群 task 调度
      6. Mach 2.5 -> NeXT, Encore, OSF
    3. Not take over the world
      1. Hardware standardization
      2. Software standardization
  4. Exokernel structure
    1. OS devided from critical path: kernel never provide any service
    2. Example
      1. Program visit hardware directly
      2. Library OS can be customized for applications ->LKL
    3. Customer-support issues
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值