sp1.intro

28
09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved 1 CIT-603 CIT-603 Systems Programming Systems Programming Govt. Post Graduate College, Samanabad, Faisalabad Govt. Post Graduate College, Samanabad, Faisalabad Lecture By: Khalid Mahmood

Upload: khalid-mahmood

Post on 10-Jul-2015

50 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

1

CIT-603CIT-603Systems ProgrammingSystems ProgrammingGovt. Post Graduate College, Samanabad, FaisalabadGovt. Post Graduate College, Samanabad, Faisalabad

Lecture By: Khalid Mahmood

Page 2: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

2

Contents

Motivation Communication Grading, Policy on Cheating

Page 3: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

3

Motivation

Manage hardware Make it easier to use Powerful primitives Fancy interface Make use more efficient

Page 4: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

4

Motivation Basics of Systems Programming? What is an Operating System? What resource management and

allocation can an operating system do for my applications?

What do I need to know about operating systems for my first start up company?

Page 5: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

5

Communication

News for all non-personal communication.

E-mail: [email protected] or individual e-mail addresses.

Office Hours – To be arranged

Page 6: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

6

Course Information Prerequisites: Operating Systems Student Responsibilities Laboratory Facilities Online Resources

lecture slides and videos News

Page 7: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

7

Grading Policy(subject to minor changes)

Final Exam 30% Midterm Exam 20% Midterm Exam 2 15% 10 Machine Problems 50% Bonus Points + 3% for attendance

and participation

Page 8: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

8

Grading

Exams, MPs and Quizzes : Individual Assignments unless otherwise stated

Late Policy: 2% an hour No late quizzes, one make up only

and on Doctor’s excuse 1 week for regrade requests

Page 9: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

9

Cheating Policy

Academic integrity Your work in this class must be your

own - we have a zero tolerance policy towards cheating of any kind and any student who cheats will get a failing grade in the course.

Page 10: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

10

Cheating Policy

Both the cheater and the student who aided the cheater will be held responsible for the cheating

Page 11: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

11

OS Examples

Linux NT VMWare

Page 12: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

12

Possible future MPs•Design your own web server•Write a simple device driver•Build a simple file system and integrate it with your own server•Use memory mapped files to build a simple VMware emulator•Study caches, context switching, and multithreading using VTunes performance monitor

Page 13: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

13

Exams

Mid TermMake Up

Dates to be mentioned…..

Final Dates to be mentioned…..

Page 14: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

14

Summary Start on Thursday with Chapter 1 Revise C++, Separate Compilation, Linking,

Make, Take Quiz Please think about what an OS does What would you like in an Operating

System? Visit the web site

Page 15: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

15

Introduction

Chapter 1

1.1 What is an operating system1.2 History of operating systems1.3 The operating system zoo1.4 Computer hardware review1.5 Operating system concepts1.6 System calls1.7 Operating system structure

Page 16: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

16

Introduction

A computer system consists of hardware system programs application programs

Page 17: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

17

What is an Operating System

It is an extended machine Hides the messy details which must be performed Presents user with a virtual machine, easier to use

It is a resource manager Each program gets time with the resource Each program gets space on the resource

Page 18: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

18

History of Operating Systems (1)

Early batch system bring cards to 1401 read cards to tape put tape on 7094 which does computing put tape on 1401 which prints output

Page 19: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

19

History of Operating Systems (2) First generation 1945 – 1955

vacuum tubes, plug boards Second generation 1955 - 1965

transistors, batch systems Third generation 1965 – 1980

ICs and multiprogramming Fourth generation 1980 – present

– personal computers

Page 20: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

20

History of Operating Systems (3)

Structure of a typical FMS job – 2nd generation

Page 21: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

21

History of Operating Systems (4)

Multiprogramming system – three jobs in memory – 3rd generation

Page 22: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

22

The Operating System Zoo

Mainframe operating systems Server operating systems Multiprocessor operating systems Personal computer operating systems Real-time operating systems Embedded operating systems Smart card operating systems

Page 23: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

23

Computer Hardware Review (1)

Components of a simple personal computer

Monitor

Bus

Page 24: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

24

Computer Hardware Review (2)

(a) A three-stage pipeline(b) A superscalar CPU

Page 25: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

25

Computer Hardware Review (3)

Typical memory hierarchy– numbers shown are rough approximations

Page 26: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

26

Computer Hardware Review (4)

Structure of a disk drive

Page 27: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

27

Computer Hardware Review (5)

One base-limit pair and two base-limit pairs

Page 28: Sp1.intro

09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved

28

Summary

An Operating System is an extended machine a resource manager