MIT 6.S081 Lecture 1: Introduction and examples
Reading
OS purpose
- 
Abstract H/W
 - 
Multiplex
 - 
Isolation
 - 
Sharing
 - 
Security
 - 
Performance
 - 
Range of uses
 
Classic design
- 
内核 用户层隔离的设计

 
Why OS hard and interesting?
- 
unforgiving
 - 
tension
- efficient - abstract
 - powerfull - simple
 - flexible - secure
 
 - 
文件交互和进程交互
 
program example using Sys Call
- 
copy.c
- 使用read write exit系统调用
 - fd文件描述符(标准输入输出也只是文件而已)
- 0 stdin
 - 1 stdout
 - 2 stderr
 
 
 - 
open.c
- 使用open write exit系统调用
 
 - 
sh.c
- shell可以被认为仅仅是执行标准输入的命令并打印到标准输出的用户程序
 
 - 
fork.c
- 使用fork系统调用
 
 - 
exec.c
- 使用exec系统调用
 
 - 
forkexec.c
- 使用fork exec wait系统调用
 
 - 
redirect.c
- 使用fork open exec wait系统调用
 - 实现了I/O重定向 new.txt -> 1
 
 

