SlideShare a Scribd company logo
MODERN OPERATING SYSTEMS
Third Edition
ANDREW S. TANENBAUM
Chapter 1
Introduction
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Outline
 What is an operating system
 The history of Operating System
 Hardware of operating system
 Important concepts of Operating System
What Is An Operating System
A modern computer consists of:
• One or more processors
• Main memory
• Disks
• Printers
• Various input/output devices
Managing all these components requires a layer of
software – the operating system
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
What is an Operating System?
 A modern computer is very complex.
 Networking
 Disks
 Video/audio card
 ….
 It is impossible for every application programmer to
understand every detail
 A layer of computer software is introduced to provide a
better, simpler, cleaner model of the resources and
manage them
What Is An Operating System
Figure 1-1. Where the operating system fits in.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
What is an Operating System?
 Users use various OS
 Windows, Linux, Mac OS etc.
 User interacts with shell or GUI
 part of OS?
 they use OS to get their work done
 Is device driver part of OS?
What is an Operating System?
 On top of hardware is OS
 Most computers have two modes of operation:
 Kernel mode and user mode
 OS runs in kernel mode, which has complete access to all
hardware and can execute any instruction
 Rest of software runs in user mode, which has limited
capability
 Shell or GUI is the lowest level of user mode software
What is an operating system?
 Two functions:
 From top to down: provide application programmers a
clean abstract set of resources instead of hardware ones
 From down to top: Manage these hardware resources
The Operating System as an Extended
Machine
Figure 1-2. Operating systems turn ugly hardware into beautiful
abstractions.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
As an extended machine
 Abstraction:
 CPU—process
 Storage –- files
 Memory– address space
 4 types of people:
 Industrial engineer: design hardware
 Kernel designer
 Application programmer: OS’s user
 End users
The Operating System as a Resource
Manager
• Allow multiple programs to run at the same time
• Manage and protect memory, I/O devices, and
other resources
• Includes multiplexing (sharing) resources in two
different ways:
• In time
• In space
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
As a resource manager
 Modern OS runs multiple programs of multiple users at
the same time
 Imagine what would happen if several programs want to
print at the same time?
 How to account the resource usage of each process?
 Resources can be multiplexed:
 How to ensure fairness and efficiency?
summary
 Operating system is a software
 Is a complex software
 Runs in kernel mode
 Manages hardware
 Provide a friendly interface for application programmer
History of Operating Systems
Generations:
• (1945–55) Vacuum Tubes
• (1955–65) Transistors and Batch Systems
• (1965–1980) ICs and Multiprogramming
• (1980–Present) Personal Computers
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
1st: vacuum tubes
 Large and slow
 Engineers design, build, operate and maintain the
computer
 All programming is done with machine language, or by
wiring circuits using cables
 insert plugboards into the computer and operate
 The work is mainly numerical calculations
2nd: transistors and batch
systems
 Also called mainframes
 Computers are managed by professional operators
 Programmers use punch card to run programs;
operators operate (load compiler, etc ) and
collect output to the user
 Complains soon come:
 Human Operation between computer operation
 Lead to batch system
 Collect a batch of jobs in the input room, then read
them into a magnetic tape; the same for output
2nd: Transistors and Batch Systems (1)
Figure 1-3. An early batch system.
(a) Programmers bring cards to 1401.
(b)1401 reads batch of jobs onto tape.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Transistors and Batch Systems (2)
Figure 1-3. (c) Operator carries input tape to 7094.
(d) 7094 does computing. (e) Operator carries output tape to
1401. (f) 1401 prints output.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Transistors and Batch Systems (4)
Figure 1-4. Structure of a typical FMS job.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
3rd: IC and Multiprogramming
 OS/360: a dinosaur stuck in a tar pit
 Aims to adapts 1401/7904, covers all trades of life
 However, OS/360 introduces several key techniques
 Multi-programming: solve the problem of CPU idling
 Spooling: simultaneous peripheral operation on line
 Whenever a job finishes, OS load a new job from disk to the
empty-partition
Figure 1-5. A multiprogramming system
with three jobs in memory.
3rd: ICs and Multiprogramming
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
3rd: Ics and Multiprogramming
 Problems:
 3rd generation OS was well suited for big scientific
calculations and massive data processing
 But many programmers complain a lot… for not be able to
debug quickly…. Why?
 And the solution to this problem would be….?
 Timesharing:
 A variant of multiprogramming
 Provide both fast interactive service but also fits big batch
work
3rd: IC and Multiprogramming
 A system to be remembered: MULTICS
 A machine that would support hundreds of simultaneous
timesharing users– like the electricity system (like a web
server nowadays)
 Introduces many brilliant ideas but enjoys no commercial
success
 Its step-child is the well-known and time-honored UNIX
 System V/ FreeBSD, MINIX, Linux
4th: personal computers
 Computers have performance similar to 3rd generation,
but prices drastically different
 CP/M
 First disk-based OS
 1980, IBM PC, Basic Interpreter, DOS, MS-DOS
 GUI--Lisa—Apple: user friendly
 MS-DOS with GUI– Win95/98/me—winNT/xp…
Summary
 4 generations OS
 Develops with hardware and user needs
 Multi-user, multi-programming, time-sharing
Computer Hardware Review
Figure 1-6. Some of the components
of a simple personal computer.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Hardware: processor
 Brain of computer
 Fetches instruction from memory and execute
 Cycle of CPU:
 fetch, decode, execute
 CPU has registers to store variable and temporary result:
load from memory to register; store from register to
memory
 Program counter: next instruction to fetch
 Stack pointer: the top of the current stack
 PSW: program status word, priority, mode…
A reference
 Adam Smith: Wealth of Nation
 Of the Division of labor
 One man draws out the wire, another straights it, a
third cuts it, a fourth points it, a fifth grinds it at the
top…
 One person could make up to forth-eight thousand pins
in a day

More Related Content

What's hot

Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
Anil Kumar Pugalia
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
aaina_katyal
 
Structure of operating system
Structure of operating systemStructure of operating system
Structure of operating system
GayathriS578276
 
File Protection in Operating System
File Protection in Operating SystemFile Protection in Operating System
File Protection in Operating System
Meghaj Mallick
 
Distributed shared memory shyam soni
Distributed shared memory shyam soniDistributed shared memory shyam soni
Distributed shared memory shyam soni
Shyam Soni
 
Memory management early_systems
Memory management early_systemsMemory management early_systems
Memory management early_systems
Mybej Che
 
Distributed and clustered systems
Distributed and clustered systemsDistributed and clustered systems
Distributed and clustered systems
V.V.Vanniaperumal College for Women
 
Operating System-Ch6 process synchronization
Operating System-Ch6 process synchronizationOperating System-Ch6 process synchronization
Operating System-Ch6 process synchronization
Syaiful Ahdan
 
2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts
Prajakta Rane
 
Goals of protection
Goals of protectionGoals of protection
Goals of protection
veena ali
 
operating system structure
operating system structureoperating system structure
operating system structure
Waseem Ud Din Farooqui
 
Operating system
Operating systemOperating system
Operating system
Tanvirul Islam
 
Introduction to Parallel Computing
Introduction to Parallel ComputingIntroduction to Parallel Computing
Introduction to Parallel Computing
Akhila Prabhakaran
 
Cluster Schedulers
Cluster SchedulersCluster Schedulers
Cluster Schedulers
Pietro Michiardi
 
Operating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionOperating system || Chapter 1: Introduction
Operating system || Chapter 1: Introduction
AnkonGopalBanik
 
NUMA overview
NUMA overviewNUMA overview
NUMA overview
Abed Maatalla
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
Embeddedbvp
 
Advanced Operating System- Introduction
Advanced Operating System- IntroductionAdvanced Operating System- Introduction
Advanced Operating System- Introduction
Debasis Das
 
operating system lecture notes
operating system lecture notesoperating system lecture notes
operating system lecture notes
AVC College of Engineering
 
Operating Systems - "Chapter 4: Multithreaded Programming"
Operating Systems - "Chapter 4:  Multithreaded Programming"Operating Systems - "Chapter 4:  Multithreaded Programming"
Operating Systems - "Chapter 4: Multithreaded Programming"
Ra'Fat Al-Msie'deen
 

What's hot (20)

Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Structure of operating system
Structure of operating systemStructure of operating system
Structure of operating system
 
File Protection in Operating System
File Protection in Operating SystemFile Protection in Operating System
File Protection in Operating System
 
Distributed shared memory shyam soni
Distributed shared memory shyam soniDistributed shared memory shyam soni
Distributed shared memory shyam soni
 
Memory management early_systems
Memory management early_systemsMemory management early_systems
Memory management early_systems
 
Distributed and clustered systems
Distributed and clustered systemsDistributed and clustered systems
Distributed and clustered systems
 
Operating System-Ch6 process synchronization
Operating System-Ch6 process synchronizationOperating System-Ch6 process synchronization
Operating System-Ch6 process synchronization
 
2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts
 
Goals of protection
Goals of protectionGoals of protection
Goals of protection
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Operating system
Operating systemOperating system
Operating system
 
Introduction to Parallel Computing
Introduction to Parallel ComputingIntroduction to Parallel Computing
Introduction to Parallel Computing
 
Cluster Schedulers
Cluster SchedulersCluster Schedulers
Cluster Schedulers
 
Operating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionOperating system || Chapter 1: Introduction
Operating system || Chapter 1: Introduction
 
NUMA overview
NUMA overviewNUMA overview
NUMA overview
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Advanced Operating System- Introduction
Advanced Operating System- IntroductionAdvanced Operating System- Introduction
Advanced Operating System- Introduction
 
operating system lecture notes
operating system lecture notesoperating system lecture notes
operating system lecture notes
 
Operating Systems - "Chapter 4: Multithreaded Programming"
Operating Systems - "Chapter 4:  Multithreaded Programming"Operating Systems - "Chapter 4:  Multithreaded Programming"
Operating Systems - "Chapter 4: Multithreaded Programming"
 

Similar to Operating System

Chapter - 1
Chapter - 1Chapter - 1
Chapter - 1
Munazza-Mah-Jabeen
 
Introduction To operating System:
Introduction To operating System:Introduction To operating System:
Introduction To operating System:
Munazza-Mah-Jabeen
 
Unit 1 introduction to os
Unit 1 introduction to osUnit 1 introduction to os
Unit 1 introduction to os
GaneshThapa27
 
computer Unit 7
computer Unit 7computer Unit 7
computer Unit 7
Aqeel Rehman
 
The Deal
The DealThe Deal
The Deal
adhaval
 
OperatingSystem01..(B.SC Part 2)
OperatingSystem01..(B.SC Part 2)OperatingSystem01..(B.SC Part 2)
OperatingSystem01..(B.SC Part 2)
Muhammad Osama
 
Introduction to computer systems. Architecture of computer systems.
Introduction to computer systems. Architecture of computer systems.Introduction to computer systems. Architecture of computer systems.
Introduction to computer systems. Architecture of computer systems.
TazhikDukenov
 
COMPUTER.docx
COMPUTER.docxCOMPUTER.docx
COMPUTER.docx
proshot113
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
laniepalad
 
Introduction to Computer.pdf
Introduction to Computer.pdfIntroduction to Computer.pdf
Introduction to Computer.pdf
PinkiNayak1
 
Ch01 introducing operating systems
Ch01 introducing operating systemsCh01 introducing operating systems
Ch01 introducing operating systems
Jacob Cadeliña
 
Generation of computer
Generation of computerGeneration of computer
Generation of computer
rameshkumar1646
 
Application of computer in Hospitality
Application of computer in HospitalityApplication of computer in Hospitality
Application of computer in Hospitality
Priya Roy
 
Fundamentals of Computers & Information System
Fundamentals of Computers & Information System  Fundamentals of Computers & Information System
Fundamentals of Computers & Information System
Hitesh Srivastava
 
Chapter01 introduction to Operating systems
Chapter01 introduction to Operating systems Chapter01 introduction to Operating systems
Chapter01 introduction to Operating systems
amernassiri
 
CSE 370 - Introduction to Operating Systems
CSE 370 - Introduction to Operating SystemsCSE 370 - Introduction to Operating Systems
CSE 370 - Introduction to Operating Systems
Dev Khare
 
Introduction to operating syatem
Introduction to operating syatemIntroduction to operating syatem
Introduction to operating syatem
Rafi Dar
 
Operating System-Introduction
Operating System-IntroductionOperating System-Introduction
Operating System-Introduction
Shipra Swati
 
Computer basics
Computer basicsComputer basics
Computer basics
kitturashmikittu
 
01.osdoc
01.osdoc01.osdoc
01.osdoc
Pramod Redekar
 

Similar to Operating System (20)

Chapter - 1
Chapter - 1Chapter - 1
Chapter - 1
 
Introduction To operating System:
Introduction To operating System:Introduction To operating System:
Introduction To operating System:
 
Unit 1 introduction to os
Unit 1 introduction to osUnit 1 introduction to os
Unit 1 introduction to os
 
computer Unit 7
computer Unit 7computer Unit 7
computer Unit 7
 
The Deal
The DealThe Deal
The Deal
 
OperatingSystem01..(B.SC Part 2)
OperatingSystem01..(B.SC Part 2)OperatingSystem01..(B.SC Part 2)
OperatingSystem01..(B.SC Part 2)
 
Introduction to computer systems. Architecture of computer systems.
Introduction to computer systems. Architecture of computer systems.Introduction to computer systems. Architecture of computer systems.
Introduction to computer systems. Architecture of computer systems.
 
COMPUTER.docx
COMPUTER.docxCOMPUTER.docx
COMPUTER.docx
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Introduction to Computer.pdf
Introduction to Computer.pdfIntroduction to Computer.pdf
Introduction to Computer.pdf
 
Ch01 introducing operating systems
Ch01 introducing operating systemsCh01 introducing operating systems
Ch01 introducing operating systems
 
Generation of computer
Generation of computerGeneration of computer
Generation of computer
 
Application of computer in Hospitality
Application of computer in HospitalityApplication of computer in Hospitality
Application of computer in Hospitality
 
Fundamentals of Computers & Information System
Fundamentals of Computers & Information System  Fundamentals of Computers & Information System
Fundamentals of Computers & Information System
 
Chapter01 introduction to Operating systems
Chapter01 introduction to Operating systems Chapter01 introduction to Operating systems
Chapter01 introduction to Operating systems
 
CSE 370 - Introduction to Operating Systems
CSE 370 - Introduction to Operating SystemsCSE 370 - Introduction to Operating Systems
CSE 370 - Introduction to Operating Systems
 
Introduction to operating syatem
Introduction to operating syatemIntroduction to operating syatem
Introduction to operating syatem
 
Operating System-Introduction
Operating System-IntroductionOperating System-Introduction
Operating System-Introduction
 
Computer basics
Computer basicsComputer basics
Computer basics
 
01.osdoc
01.osdoc01.osdoc
01.osdoc
 

More from Munazza-Mah-Jabeen

Virtual Functions
Virtual FunctionsVirtual Functions
Virtual Functions
Munazza-Mah-Jabeen
 
The Standard Template Library
The Standard Template LibraryThe Standard Template Library
The Standard Template Library
Munazza-Mah-Jabeen
 
Object-Oriented Software
Object-Oriented SoftwareObject-Oriented Software
Object-Oriented Software
Munazza-Mah-Jabeen
 
Templates and Exceptions
 Templates and Exceptions Templates and Exceptions
Templates and Exceptions
Munazza-Mah-Jabeen
 
Dictionaries and Sets
Dictionaries and SetsDictionaries and Sets
Dictionaries and Sets
Munazza-Mah-Jabeen
 
More About Strings
More About StringsMore About Strings
More About Strings
Munazza-Mah-Jabeen
 
Streams and Files
Streams and FilesStreams and Files
Streams and Files
Munazza-Mah-Jabeen
 
Lists and Tuples
Lists and TuplesLists and Tuples
Lists and Tuples
Munazza-Mah-Jabeen
 
Files and Exceptions
Files and ExceptionsFiles and Exceptions
Files and Exceptions
Munazza-Mah-Jabeen
 
Functions
FunctionsFunctions
Pointers
PointersPointers
Repitition Structure
Repitition StructureRepitition Structure
Repitition Structure
Munazza-Mah-Jabeen
 
Inheritance
InheritanceInheritance
Inheritance
Munazza-Mah-Jabeen
 
Operator Overloading
Operator OverloadingOperator Overloading
Operator Overloading
Munazza-Mah-Jabeen
 
Memory Management
Memory ManagementMemory Management
Memory Management
Munazza-Mah-Jabeen
 
Arrays and Strings
Arrays and StringsArrays and Strings
Arrays and Strings
Munazza-Mah-Jabeen
 
Objects and Classes
Objects and ClassesObjects and Classes
Objects and Classes
Munazza-Mah-Jabeen
 
Functions
FunctionsFunctions
Structures
StructuresStructures
Structures
Munazza-Mah-Jabeen
 
Loops and Decisions
Loops and DecisionsLoops and Decisions
Loops and Decisions
Munazza-Mah-Jabeen
 

More from Munazza-Mah-Jabeen (20)

Virtual Functions
Virtual FunctionsVirtual Functions
Virtual Functions
 
The Standard Template Library
The Standard Template LibraryThe Standard Template Library
The Standard Template Library
 
Object-Oriented Software
Object-Oriented SoftwareObject-Oriented Software
Object-Oriented Software
 
Templates and Exceptions
 Templates and Exceptions Templates and Exceptions
Templates and Exceptions
 
Dictionaries and Sets
Dictionaries and SetsDictionaries and Sets
Dictionaries and Sets
 
More About Strings
More About StringsMore About Strings
More About Strings
 
Streams and Files
Streams and FilesStreams and Files
Streams and Files
 
Lists and Tuples
Lists and TuplesLists and Tuples
Lists and Tuples
 
Files and Exceptions
Files and ExceptionsFiles and Exceptions
Files and Exceptions
 
Functions
FunctionsFunctions
Functions
 
Pointers
PointersPointers
Pointers
 
Repitition Structure
Repitition StructureRepitition Structure
Repitition Structure
 
Inheritance
InheritanceInheritance
Inheritance
 
Operator Overloading
Operator OverloadingOperator Overloading
Operator Overloading
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Arrays and Strings
Arrays and StringsArrays and Strings
Arrays and Strings
 
Objects and Classes
Objects and ClassesObjects and Classes
Objects and Classes
 
Functions
FunctionsFunctions
Functions
 
Structures
StructuresStructures
Structures
 
Loops and Decisions
Loops and DecisionsLoops and Decisions
Loops and Decisions
 

Recently uploaded

Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
TechSoup
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
Prof. Dr. K. Adisesha
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
nitinpv4ai
 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
EduSkills OECD
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
Mohammad Al-Dhahabi
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
khuleseema60
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
Iris Thiele Isip-Tan
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
Celine George
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapitolTechU
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
IsmaelVazquez38
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
Nguyen Thanh Tu Collection
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
blueshagoo1
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 

Recently uploaded (20)

Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 

Operating System

  • 1. MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
  • 2. Outline  What is an operating system  The history of Operating System  Hardware of operating system  Important concepts of Operating System
  • 3. What Is An Operating System A modern computer consists of: • One or more processors • Main memory • Disks • Printers • Various input/output devices Managing all these components requires a layer of software – the operating system Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
  • 4. What is an Operating System?  A modern computer is very complex.  Networking  Disks  Video/audio card  ….  It is impossible for every application programmer to understand every detail  A layer of computer software is introduced to provide a better, simpler, cleaner model of the resources and manage them
  • 5. What Is An Operating System Figure 1-1. Where the operating system fits in. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
  • 6. What is an Operating System?  Users use various OS  Windows, Linux, Mac OS etc.  User interacts with shell or GUI  part of OS?  they use OS to get their work done  Is device driver part of OS?
  • 7. What is an Operating System?  On top of hardware is OS  Most computers have two modes of operation:  Kernel mode and user mode  OS runs in kernel mode, which has complete access to all hardware and can execute any instruction  Rest of software runs in user mode, which has limited capability  Shell or GUI is the lowest level of user mode software
  • 8. What is an operating system?  Two functions:  From top to down: provide application programmers a clean abstract set of resources instead of hardware ones  From down to top: Manage these hardware resources
  • 9. The Operating System as an Extended Machine Figure 1-2. Operating systems turn ugly hardware into beautiful abstractions. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
  • 10. As an extended machine  Abstraction:  CPU—process  Storage –- files  Memory– address space  4 types of people:  Industrial engineer: design hardware  Kernel designer  Application programmer: OS’s user  End users
  • 11. The Operating System as a Resource Manager • Allow multiple programs to run at the same time • Manage and protect memory, I/O devices, and other resources • Includes multiplexing (sharing) resources in two different ways: • In time • In space Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
  • 12. As a resource manager  Modern OS runs multiple programs of multiple users at the same time  Imagine what would happen if several programs want to print at the same time?  How to account the resource usage of each process?  Resources can be multiplexed:  How to ensure fairness and efficiency?
  • 13. summary  Operating system is a software  Is a complex software  Runs in kernel mode  Manages hardware  Provide a friendly interface for application programmer
  • 14. History of Operating Systems Generations: • (1945–55) Vacuum Tubes • (1955–65) Transistors and Batch Systems • (1965–1980) ICs and Multiprogramming • (1980–Present) Personal Computers Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
  • 15. 1st: vacuum tubes  Large and slow  Engineers design, build, operate and maintain the computer  All programming is done with machine language, or by wiring circuits using cables  insert plugboards into the computer and operate  The work is mainly numerical calculations
  • 16. 2nd: transistors and batch systems  Also called mainframes  Computers are managed by professional operators  Programmers use punch card to run programs; operators operate (load compiler, etc ) and collect output to the user  Complains soon come:  Human Operation between computer operation  Lead to batch system  Collect a batch of jobs in the input room, then read them into a magnetic tape; the same for output
  • 17. 2nd: Transistors and Batch Systems (1) Figure 1-3. An early batch system. (a) Programmers bring cards to 1401. (b)1401 reads batch of jobs onto tape. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
  • 18. Transistors and Batch Systems (2) Figure 1-3. (c) Operator carries input tape to 7094. (d) 7094 does computing. (e) Operator carries output tape to 1401. (f) 1401 prints output. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
  • 19. Transistors and Batch Systems (4) Figure 1-4. Structure of a typical FMS job. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
  • 20. 3rd: IC and Multiprogramming  OS/360: a dinosaur stuck in a tar pit  Aims to adapts 1401/7904, covers all trades of life  However, OS/360 introduces several key techniques  Multi-programming: solve the problem of CPU idling  Spooling: simultaneous peripheral operation on line  Whenever a job finishes, OS load a new job from disk to the empty-partition
  • 21. Figure 1-5. A multiprogramming system with three jobs in memory. 3rd: ICs and Multiprogramming Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
  • 22. 3rd: Ics and Multiprogramming  Problems:  3rd generation OS was well suited for big scientific calculations and massive data processing  But many programmers complain a lot… for not be able to debug quickly…. Why?  And the solution to this problem would be….?  Timesharing:  A variant of multiprogramming  Provide both fast interactive service but also fits big batch work
  • 23. 3rd: IC and Multiprogramming  A system to be remembered: MULTICS  A machine that would support hundreds of simultaneous timesharing users– like the electricity system (like a web server nowadays)  Introduces many brilliant ideas but enjoys no commercial success  Its step-child is the well-known and time-honored UNIX  System V/ FreeBSD, MINIX, Linux
  • 24. 4th: personal computers  Computers have performance similar to 3rd generation, but prices drastically different  CP/M  First disk-based OS  1980, IBM PC, Basic Interpreter, DOS, MS-DOS  GUI--Lisa—Apple: user friendly  MS-DOS with GUI– Win95/98/me—winNT/xp…
  • 25. Summary  4 generations OS  Develops with hardware and user needs  Multi-user, multi-programming, time-sharing
  • 26. Computer Hardware Review Figure 1-6. Some of the components of a simple personal computer. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
  • 27. Hardware: processor  Brain of computer  Fetches instruction from memory and execute  Cycle of CPU:  fetch, decode, execute  CPU has registers to store variable and temporary result: load from memory to register; store from register to memory  Program counter: next instruction to fetch  Stack pointer: the top of the current stack  PSW: program status word, priority, mode…
  • 28. A reference  Adam Smith: Wealth of Nation  Of the Division of labor  One man draws out the wire, another straights it, a third cuts it, a fourth points it, a fifth grinds it at the top…  One person could make up to forth-eight thousand pins in a day