sp1.intro
TRANSCRIPT
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
09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved
2
Contents
Motivation Communication Grading, Policy on Cheating
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
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?
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
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
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
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
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.
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
09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved
11
OS Examples
Linux NT VMWare
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
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…..
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
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
09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved
16
Introduction
A computer system consists of hardware system programs application programs
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
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
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
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
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
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
09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved
23
Computer Hardware Review (1)
Components of a simple personal computer
Monitor
Bus
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
09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved
25
Computer Hardware Review (3)
Typical memory hierarchy– numbers shown are rough approximations
09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved
26
Computer Hardware Review (4)
Structure of a disk drive
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
09/09/14 CIT-603 © 2014 Khalid Mahmood, All Rights Reserved
28
Summary
An Operating System is an extended machine a resource manager