Lec 1: Introduction and examples
- Ref: https://github.com/huihongxiao/MIT6.S081/tree/master/lec01-introduction-and-examples
- Preparation: xv6 book Chapter 1
课程目标
- OS Design 操作系统设计
- Hands-on Exe 操作系统实践
OS PURPOSE
- Abstract Hardware 硬件抽象
- Mutiplex 在许多应用程序中复用硬件资源
- Isolation 隔离性, 不同活动互不干涉
- Sharing 共享
- Security 安全系统和权限
- Performance 性能
- Range of uses 多种用途
OS ORGANIZATION
API-KERNEL
系统调用
fd = open("out",1)
write(fd, "hello\n", 6);
pid = fork()
创建新进程
HARD/INTERSETING
- Environment 环境
- Tensions 解决矛盾
- Efficient - Abstract
- Powerful - Simple API
- Flexible - Security