ustc-21000201-operating systems; fall 2015; instructor: chi zhang 1 welcome to —21000201—...

29
USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place: 3A108 Fall 2015

Upload: gilbert-mills

Post on 19-Jan-2016

262 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1

Welcome to

—21000201—

Operating SystemsTime: Tues. 07:50—09:25 Thur. 09:45—11:20

Place: 3A108

Fall 2015

Page 2: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 2

Today’s agenda

A brief overview of the course What is an operating system?

• And-what is it not ? Administrative aspects

How does this class operate?

Interactive is important! Ask questions!

Page 3: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 3

OS 在信安专业课程设置中的位置MATH

CS ICT

Page 4: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 4

Prerequisites

如果你能理解左边图的内容,那么就表明你已经具备学习本课程所需的计算机体系结构方面的知识了

No prerequisites other than a working knowledge of computer architecture

Page 5: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

OS

Single user/single tasking

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 5

Page 6: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

OS

Single user/multi-tasking

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 6

Page 7: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

OS Multi-user/multi-tasking

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 7

Page 8: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 8

Learn the fundamentals of operating systems

Coverage broad on most topics, deep on a few

Most important, have fun !!!

What you’d achieve from this course

Application

Operating System

HardwarePhysical Machine Interface

Virtual Machine Interface

Page 9: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 9

What you will not learn from this course

A lot …

Why? There are lots of things I don’t know The field is enormous There are numerous inessential details

• Technologies evolve super-rapidly• Fundamental design ideas are here to stay

Page 10: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

2014 summer @ Alibaba

阿里杭州西溪总部 技术保障部 (Ali Infrastructure Service, AIS)

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 10

Page 11: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

Ali’s 11.11 sales miracle

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 11

阿里技术保障部Ali Infrastructure Service

高可用性 强一致性 大规模 低成本

Page 12: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

Ali’s 11.11 sales miracle 2013 年双 11 成交总额 350 亿元 2013 年中国零售总额 600 亿元 /天 峰值交易量 15320笔 /秒

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 12

Scale-upScale-out

Page 13: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

Wiping-off IOE I=IBM 小型机 O=Oracle 数据库 E=EMC 存储设备

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 13

Page 14: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

Ali’s technologies

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 14

Ali AIS 的大事 去 IOE 登月计划 集团云化 走出杭州

Ali 的技术积累 Server: AliRack Operating System: YUNOS Security: 阿里云盾 Database: OceanBase Data Processing: OPDS

Page 15: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

Quiz 0: 10 minutes

测试目的:背景调查只要交卷就得满分

测试内容:姓名、学号、院系专业、年级(大三或其它) (1) 计算机的硬件组成一般包含哪些部分? (2) P ≠ NP 是什么意思? (3) 信安专业的学生:为什么选择信安专业? 非信安专业的学生:为什么选修这门课?

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 15

Page 16: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

Using Google and USTC’s library !

Textbook: William Stallings, “Operating Systems: Internals and Design

Principles”, 6th Edition 中译本《操作系统 精髓与设计原理》 Online supplements http://williamstallings.com/OS/OS6e.html Question: need 7th edition? No

Online materials (including lecture notes): http://staff.ustc.edu.cn/~chizhang/OS/

Other reference books & materials: see website

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 16

Course materials

广闻博见多读多听

Page 17: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

Course materials Recommended Reading:

Operating Systems: Three Easy Pieces• http://pages.cs.wisc.edu/~remzi/OSTEP/

Operating Systems: Principles and Practice• http://ospp.cs.washington.edu/

Xv6, a simple Unix-like teaching operating system• http://pdos.csail.mit.edu/6.828/2012/xv6.html

浪潮之巅,吴军,人民邮电出版社, 2013 年 7 月第二版

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 17

Page 18: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

Teaching philosophy

And have fun !!! ─Anonymous

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 18

Page 19: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

Learn more, study less Scott Young 分享了他在一年内通过观看在线教程的讲座自

学完成 MIT 计算机科学本科课程全部 4 年 33 门课的经验

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 19

Page 20: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

Learn more, study less Scott Young’s TED Talk: How to get the finest education online? http://tedxtalks.ted.com/video/TEDxEastsidePrep-Scott-Young-Ca

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 20

※※※※※Finishing reading the textbook in 2 weeks!

Page 21: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 21

Grading policy

Writing assignments: 0% Quizzes: 20% Labs: 20% Final exam: 60%

I reserve the right to assign grades based on the overall performance

课堂不点名, quiz 时间会提前通知

Page 22: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

Labs MIT 6.828; Vx6

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 22

Page 23: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 23

Work Load

Heavy ! Start early !!

Approx. 100 pages of (light) reading per week

Several homework assignments ≥3 OS labs

5 quizzes (closed book) 1 final exam (closed book, one A4 cheat

sheet, and calculator)

Page 24: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 24

How to make it interesting? How to do well?

Participate: discuss, answer and ask questions “the only stupid question is the question you

don’t ask” Give suggestions: I’ll take them seriously

Do the assigned readings and surf the web to read related things

Start early on homework assignments and projects

Make use of the TA (and occasionally me too)

Page 25: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 25

Class Schedule

Part 0: OS Introduction (1.0 weeks) Part 1: Process Management (4.5 weeks) Part 2: Memory Management (2.5 weeks) Part 3: I/O Management (2.0 weeks) Part 4: File Management (1.0 weeks) Part 5: OS Security (2.0

weeks) Course Review (1 weeks)

一共 15周课时,预留1 周的课时作为机动

Page 26: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 26

Our TA

Mr. 牛玉坤 Email: [email protected] Office: 西区科技实验楼西楼 1702 Office hours: Fri 14:30-17:30

请学习委员课后把 联系方式留给我 请大家在教务系统中 更新自己的联系方式

Page 27: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 27

When/where/how to talk to me?

Algorithm 1 (to be made distributive)1: talk to TA2: else email me at [email protected]: else use my office hours 14:30-17:30 Fri, 科技实验楼

17134: else sneak in whenever the door is opened5: goto 1

Page 28: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

Who am I? Dr. 张驰 Associate Professor in EEIS Dept.

Ph.D. from University of Florida in 2011 Thesis: Performance & Security of Wireless Networks Winner of

• Microsoft StarTrack Award, 2013• IEEE Asia-Pacific Outstanding Young Researcher Award,

2012• UFL Gator Engineer Award for Creativity, 2011

My Research Lab System Group Wireless Group

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 28

Security Group

Theory Group

Page 29: USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 1 Welcome to —21000201— Operating Systems Time: Tues. 07:50—09:25 Thur. 09:45—11:20 Place:

USTC-21000201-OPERATING SYSTEMS; FALL 2015; INSTRUCTOR: CHI ZHANG 29

After the class…

Reading: 教材第一章:硬件知识回顾 pp.1-45 (7th Edition) 教材第二章:操作系统概述 pp.46-104 (7th Edition)