Operating System

website

LN1

Operating System: A body of software, in fact, that is responsible for making it easy to run programs (even allowing you to seemingly run many at the same time), allowing programs to share memory, enabling programs to interact with devices, and other fun stuff like that. (OSTEP)

1950s
操作(operate) 任务 (jobs) 的系统 (system)
操作系统中开始出现 “设备”、“文件”、“任务” 等对象和 API

1960s
可以同时载入多个程序而不用 “换卡” 了

操作系统服务谁?

  • 程序 = 状态机
  • 课程涉及:多线程 Linux 应用程序

(设计/应用视角) 操作系统为程序提供什么服务?

  • 操作系统 = 对象 + API
  • 课程涉及:POSIX + 部分 Linux 特性

(实现/硬件视角) 如何实现操作系统提供的服务?

  • 操作系统 = C 程序,完成初始化后就成为 interrupt/trap/fault handler