SlideShare a Scribd company logo
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction
Slide 1
Chapter 1: Introduction
What is an Operating System?
What are the components of an OS?
What does an OS do?
Short History of OSs
Different types of OSs
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 2
What is an Operating System?
A program that acts as a bridge between a user of a
computer and the computer hardware.
Operating system goals:
 Execute user programs and make solving user problems
easier.
 Make the computer system convenient to use.
Use the computer hardware in an efficient manner.
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 3
Computer System Components
1. Hardware – provides basic computing resources
(CPU, memory, I/O devices).
2.Operating system – controls and coordinates the
use of the hardware among the various application
programs for the various users.
3.Applications programs – define the ways in which
the system resources are used to solve the
computing problems of the users (compilers,
database systems, video games, business programs).
4.Users - (people, machines, other computers).
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 4
Abstract View of System Components
Structure of Operating System:
Application Programs
System Programs
HARDWARE
(Contd…)
User
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 6
Functions/Role of an OS
User Environment - OS layer transforms bare
hardware machine into higher level abstractions
 Execution environment - process management, file
manipulation, interrupt handling, I/O operations,
language.
 Error detection and handling
 Protection and security
 Fault tolerance and failure recovery(Remove problems)
 Government(It makes the environment for all the devices
to work together)
 Resource Allocator(Specific request to Specific resource)
 Control Program
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 7
Functions of an OS
Resource Management
 Time management
 CPU and disk transfer scheduling
 Space management
 main and secondary storage allocation
 Synchronization and deadlock handling
 critical selection, coordination
 Accounting and status information
 resource usage tracking, usage of CPU
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 8
Mainframe Systems
First computers used to solve many commercial and
scientific applications
Reduce setup time by batching similar jobs
 serial card readers were initial input device then disks enabled job
scheduling by the operating system
Automatic job sequencing – automatically transfers control
from one job to another.
Early OS called resident monitor
Simple Batch System
multiple programs batched together and submitted
by an operator.
The user submit the job on cards or tapes to a
program operator, who batches the jobs together
sequentially and places the entire batch on an input
device, for use by the monitor (program).
Processor time was wasted.
Disk was introduced, which was faster then cards.
Job Scheduling
Slide 9
A. Frank - P. Weisberg
Example card deck of a Job
Uniprogramming (single tasking) Systems
I/O devices very slow
Batch Processing:
In Batch processing same type of jobs batch (BATCH- a
set of jobs with similar needs) together and execute at a
time.
The OS was simple, its major task was to transfer control
from one job to the next.
The job was submitted to the computer operator in form
of punch cards. At some later time the output appeared.
The OS was always resident in memory. (Ref. Fig. next
slide)
Common Input devices were card readers and tape
drives.
Batch Processing (Contd…):
Common output devices were line printers, tape drives,
and card punches.
Users did not interact directly with the computer
systems, but he prepared a job (comprising of the
program, the data, & some control information).
OS
User
progra
m area
Multiprogramming:
Multiprogramming is a technique to execute number of
programs simultaneously by a single processor.
In Multiprogramming, number of processes reside in
main memory at a time.
The OS picks and begins to executes one of the jobs in
the main memory.
If any I/O wait happened in a process, then CPU
switches from that job to another job.
Hence CPU in not idle at any time.
Multiprogramming (Contd…):
OS
Job 1
Job 2
Job 3
Job 4
Job 5
• Figure dipicts the layout of
multiprogramming system.
• The main memory consists of 5
jobs at a time, the CPU executes one
by one.
Advantages:
•Efficient memory utilization
•Throughput increases
•CPU is never idle, so performance
increases.
A. Frank - P. Weisberg
Multiprogramming
Time Sharing Systems:
Time sharing, or multitasking, is a logical extension of
multiprogramming.
Multiple jobs are executed by switching the CPU between
them.
In this, the CPU time is shared by different processes, so
it is called as “Time sharing Systems”.
Time slice is defined by the OS, for sharing CPU time
between processes.
CPU scheduling is used
Examples: linex, Unix, etc.,
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 18
Desktop(Personal) Systems
Personal computers – computer system dedicated to a
single user.
I/O devices – keyboards, mouse, display screens, small
printers.
User convenience and responsiveness.
Can adopt technology developed for larger operating
systems. Often individuals have sole use of computer and do
not need advanced CPU utilization of protection features.
May run several different types of operating systems
(Windows, MacOS, UNIX, Linux)
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 19
Multi Processor/Parallel Systems
Multiprocessor systems with more than one CPU in close
communication which work on a single task simultaneously.
It is also called as Tightly coupled system .They share
common system clock and data structure.
Advantages of parallel system:
 Increased throughput with more processors
 Economical – share peripherals, mass storage, power etc. as
opposed to individual PCs
 Increased reliability
 graceful degradation / fault tolerant
 failure of one processor will slow down but not halt the system
 other processors pick up the slack
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 20
Types of Multi processors(Cont.)
Symmetric multiprocessing (SMP)
 A method in which multiple processors work together on
the same task is called SMP.
 Many processes can run at once without performance
deterioration.
 Most modern operating systems support SMP
Asymmetric multiprocessing(AMP)
 Each processor is assigned a specific task; controlling
processor schedules and allocates work to other
processors.
 More common in extremely large systems
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 21
Distributed Systems
Distribute the computation among several physical
processors.
Loosely coupled system – each processor has its own
local memory; processors communicate with one another
through various communications lines, such as high-
speed buses.
Advantages of distributed systems.
 Resource sharing
 Computation speed up – load sharing
 Reliability
 Communications between processors and processes
Clustered Systems
A clustered systems uses multiple CPU’s to
accomplish a task. It is different from parallel
system in that clustered systems consists of two or
more individual systems coupled together. They are
linked through LAN. They perform monitoring and
running. It has two types
Asymetric Clustering :(One monitors and other runs
application)
Symetric Clustering:(Both monitor and both runs)
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 22
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 23
Real-Time Systems
A real time system is a that system which ensures the exact time
of a job. If a real time system does not complete a task in a
certain time ,it may cause a break down of the entire system
running.e.g Industrial control system, airplane guidance etc.
Often used as a control device in a dedicated application such as
medical imaging systems, industrial control systems, and some
display systems.
Hard real-time:
It guaranties that a job will complete within a specified time
period. This system must ensure that all delays' on processing,
input and output are bounded. The system can not wait
indefinitely so the hard time systems are usually very limited.
Auto pilot system.
Soft real-time
 Limited utility in industrial control of robotics
 It is much less real restrictive version of a hard real time
system. It does not guarantee that a job will complete in a
fix time. However it tries its best to complete the job on
time. It works on priority system.
 Useful in applications (multimedia, virtual reality)
requiring advanced operating-system features.
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 24
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 25
Handheld Systems
Personal Digital Assistants (PDAs)
Cellular telephones
I pad
IPods'
Issues:
 Limited memory (512KB to 8MB) requires efficient
management
 Slow processors
 Small display screens.
Interrupt : A change in execution caused by an
external event
Definition: an event external to the currently
executing process that causes a change in the normal
flow of instruction execution;
Usually generated by hardware devices external to the
CPU
Typically indicate that some device needs service
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 26
27
Interrupts
Program
time t
28
Interrupts
Program
Interrupt Service Routine
Interrupt
Program
time t
Classes of Interrupts
Supervisor call interrupt
I/O call interrupt
External Interrupt
Restart interrupt
Program Check interrupt
Machine check Interrupt.
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 29
O.S MODE
A processor in a computer running Windows has
two different modes: user mode and kernel mode.
The processor switches between the two modes
depending on what type of code is running on the
processor. Applications run in user mode, and core
operating system components run in kernel mode.
Many drivers run in kernel mode, but some drivers
run in user mode. When you start a user-mode
application, Windows creates a process for the
application
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 30
OPERATING SYSTEM COMPONENTS
Process management: A program in execution is
called process. The following activities are
connected with process management.
1) Process Creation
2) Process deletion
3) Process Suspension
4) Process Resumption
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 31
Main Memory Management: It includes
1. Virtual memory
2. Paging(Swapping)
3. Thrashing( Wasting of time in swapping)
4. Keeping record of which memory is free and being
used.
5. De allocating memory space as needed.
 Secondary Storage Management:
1. Free space management
2. Storage Allocation
3. Disk Scheduling
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 32
I/O System management:
1. Buffering
2. General Device Driver
3. Specific Device Driver
 File management:
1) File Creation
2) File deletion
3) File Suspension
4) File Resumption
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 33
• Protection System:
If a computer has multiple users and allows
concurrent execution of multiple processes, the
processes must be protected from each other
activities. It must
a. Distinguish between authorized and unauthorized
usage.
b. Specify the controls that are to be imposed.
c. Provide a means of enforcement.
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 34
KERNEL
The kernel's primary function is to
manage the computer's hardware and
resources and allow other programs to
run and use these resources.
In computing, the kernel is
a computer program that
manages input/output requests
from software and translates them
into data processinginstructions for
the central processing unit and
other electronic components of
a computer.
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 35
The kernel is a fundamental part of a modern
computer's operating system
When a computer program (in this case called
a process) makes requests of the kernel, the request
is called a system call.
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 36
Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 37
Ad

More Related Content

What's hot (20)

Operating System concepts
Operating System conceptsOperating System concepts
Operating System concepts
E.M.G.yadava womens college
 
Ch1
Ch1Ch1
Ch1
sunandakadiwal
 
introduction to operating system
introduction to operating systemintroduction to operating system
introduction to operating system
HAMZA AHMED
 
Mis unit iii by arnav
Mis unit iii by arnavMis unit iii by arnav
Mis unit iii by arnav
Arnav Chowdhury
 
Introduction to operating syatem
Introduction to operating syatemIntroduction to operating syatem
Introduction to operating syatem
Rafi Dar
 
Opearating System
Opearating  SystemOpearating  System
Opearating System
Dr Vijay Pithadia Director
 
Chapter02 new
Chapter02 newChapter02 new
Chapter02 new
vmummaneni
 
Operating systems
Operating systemsOperating systems
Operating systems
11cranestephen
 
System Z operating system
System Z operating systemSystem Z operating system
System Z operating system
Arpana shree
 
operating system
operating systemoperating system
operating system
KadianAman
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
vampugani
 
OPERATING SYSTEM
OPERATING SYSTEMOPERATING SYSTEM
OPERATING SYSTEM
PUNE VIDYARTHI GRIHA'S COLLEGE OF ENGINEERING, NASHIK
 
Introduction to operating systems
 Introduction to operating systems Introduction to operating systems
Introduction to operating systems
Kumbirai Junior Muzavazi
 
Operating system 02 os as an extended machine
Operating system 02 os as an extended machineOperating system 02 os as an extended machine
Operating system 02 os as an extended machine
Vaibhav Khanna
 
Os unit i
Os unit iOs unit i
Os unit i
SandhyaTatekalva
 
What is operating system
What is operating systemWhat is operating system
What is operating system
Suvithak
 
Operating System Overview
Operating System OverviewOperating System Overview
Operating System Overview
Anas Ebrahim
 
Operating System / System Operasi
Operating System / System Operasi                   Operating System / System Operasi
Operating System / System Operasi
seolangit4
 
Operating systems
Operating systemsOperating systems
Operating systems
JoshuaIgo
 
OSCh4
OSCh4OSCh4
OSCh4
Joe Christensen
 

Similar to OperatingSystem01..(B.SC Part 2) (20)

Silberschatz / OS Concepts
Silberschatz /  OS Concepts Silberschatz /  OS Concepts
Silberschatz / OS Concepts
Alanisca Alanis
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2
Ismail Mukiibi
 
Introduction to OS 1.ppt
Introduction to OS 1.pptIntroduction to OS 1.ppt
Introduction to OS 1.ppt
ShannykumarSingh
 
1Chapter One- Introdtionfghertgtujffg.pptx
1Chapter One- Introdtionfghertgtujffg.pptx1Chapter One- Introdtionfghertgtujffg.pptx
1Chapter One- Introdtionfghertgtujffg.pptx
habtegebeyawu
 
Os notes
Os notesOs notes
Os notes
SANTOSH RATH
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
np_manjunath
 
Operating system
Operating systemOperating system
Operating system
Maitri Ratna Bajracharya
 
Operating system notes
Operating system notesOperating system notes
Operating system notes
SANTOSH RATH
 
Unit 1os processes and threads
Unit 1os processes and threadsUnit 1os processes and threads
Unit 1os processes and threads
donny101
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
Akhilesh Jain
 
EE469-ch1.pptx
EE469-ch1.pptxEE469-ch1.pptx
EE469-ch1.pptx
badhautiyaakash48
 
EE469-ch1.pptx
EE469-ch1.pptxEE469-ch1.pptx
EE469-ch1.pptx
badhautiyaakash48
 
chapter 1 intoduction to operating system
chapter 1 intoduction to operating systemchapter 1 intoduction to operating system
chapter 1 intoduction to operating system
Siddhi Viradiya
 
Os notes 1_5
Os notes 1_5Os notes 1_5
Os notes 1_5
NagarajMatheswaran
 
Unit 1_Operating system
Unit 1_Operating system Unit 1_Operating system
Unit 1_Operating system
JayeshGadhave1
 
3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf
rohitbaweja26
 
Os ch1
Os ch1Os ch1
Os ch1
DevaKumari Vijay
 
Intermediate Operating Systems
Intermediate Operating SystemsIntermediate Operating Systems
Intermediate Operating Systems
John Cutajar
 
Operting system
Operting systemOperting system
Operting system
KAnurag2
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture Notes
FellowBuddy.com
 
Silberschatz / OS Concepts
Silberschatz /  OS Concepts Silberschatz /  OS Concepts
Silberschatz / OS Concepts
Alanisca Alanis
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2
Ismail Mukiibi
 
1Chapter One- Introdtionfghertgtujffg.pptx
1Chapter One- Introdtionfghertgtujffg.pptx1Chapter One- Introdtionfghertgtujffg.pptx
1Chapter One- Introdtionfghertgtujffg.pptx
habtegebeyawu
 
Operating system notes
Operating system notesOperating system notes
Operating system notes
SANTOSH RATH
 
Unit 1os processes and threads
Unit 1os processes and threadsUnit 1os processes and threads
Unit 1os processes and threads
donny101
 
chapter 1 intoduction to operating system
chapter 1 intoduction to operating systemchapter 1 intoduction to operating system
chapter 1 intoduction to operating system
Siddhi Viradiya
 
Unit 1_Operating system
Unit 1_Operating system Unit 1_Operating system
Unit 1_Operating system
JayeshGadhave1
 
3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf
rohitbaweja26
 
Intermediate Operating Systems
Intermediate Operating SystemsIntermediate Operating Systems
Intermediate Operating Systems
John Cutajar
 
Operting system
Operting systemOperting system
Operting system
KAnurag2
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture Notes
FellowBuddy.com
 
Ad

Recently uploaded (20)

Taxonomy and Systematics: Classification and Diversity of Insects.pptx
Taxonomy and Systematics: Classification and Diversity of Insects.pptxTaxonomy and Systematics: Classification and Diversity of Insects.pptx
Taxonomy and Systematics: Classification and Diversity of Insects.pptx
Arshad Shaikh
 
From Building Products to Owning the Business
From Building Products to Owning the BusinessFrom Building Products to Owning the Business
From Building Products to Owning the Business
victoriamangiantini1
 
Regression Analysis-Machine Learning -Different Types
Regression Analysis-Machine Learning -Different TypesRegression Analysis-Machine Learning -Different Types
Regression Analysis-Machine Learning -Different Types
Global Academy of Technology
 
Module I. Democracy, Elections & Good Governance
Module I. Democracy, Elections & Good GovernanceModule I. Democracy, Elections & Good Governance
Module I. Democracy, Elections & Good Governance
srkmcop0027
 
Intervene with Precision: Zooming In as a Leader Without Micromanaging
Intervene with Precision: Zooming In as a Leader Without MicromanagingIntervene with Precision: Zooming In as a Leader Without Micromanaging
Intervene with Precision: Zooming In as a Leader Without Micromanaging
victoriamangiantini1
 
NA FASE REGIONAL DO TL – 1.º CICLO. .
NA FASE REGIONAL DO TL – 1.º CICLO.     .NA FASE REGIONAL DO TL – 1.º CICLO.     .
NA FASE REGIONAL DO TL – 1.º CICLO. .
Colégio Santa Teresinha
 
Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...
Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...
Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...
online college homework help
 
How to Manage Blanket Order in Odoo 18 - Odoo Slides
How to Manage Blanket Order in Odoo 18 - Odoo SlidesHow to Manage Blanket Order in Odoo 18 - Odoo Slides
How to Manage Blanket Order in Odoo 18 - Odoo Slides
Celine George
 
the dynastic history of Kalchuris of Tripuri
the dynastic history of Kalchuris of Tripurithe dynastic history of Kalchuris of Tripuri
the dynastic history of Kalchuris of Tripuri
PrachiSontakke5
 
The Board Doesn’t Care About Your Roadmap: Running Product at the Board
The Board Doesn’t Care About Your Roadmap: Running Product at the BoardThe Board Doesn’t Care About Your Roadmap: Running Product at the Board
The Board Doesn’t Care About Your Roadmap: Running Product at the Board
victoriamangiantini1
 
Combustion in Compression Ignition Engine (CIE)
Combustion in Compression Ignition Engine (CIE)Combustion in Compression Ignition Engine (CIE)
Combustion in Compression Ignition Engine (CIE)
NileshKumbhar21
 
Automated Actions (Automation) in the Odoo 18
Automated Actions (Automation) in the Odoo 18Automated Actions (Automation) in the Odoo 18
Automated Actions (Automation) in the Odoo 18
Celine George
 
Letter to Secretary Linda McMahon from U.S. Senators
Letter to Secretary Linda McMahon from U.S. SenatorsLetter to Secretary Linda McMahon from U.S. Senators
Letter to Secretary Linda McMahon from U.S. Senators
Mebane Rash
 
NS3 Unit 5 Matter changes presentation.pptx
NS3 Unit 5 Matter changes presentation.pptxNS3 Unit 5 Matter changes presentation.pptx
NS3 Unit 5 Matter changes presentation.pptx
manuelaromero2013
 
Leveraging AI to Streamline Operations for Nonprofits [05.20.2025].pdf
Leveraging AI to Streamline Operations for Nonprofits [05.20.2025].pdfLeveraging AI to Streamline Operations for Nonprofits [05.20.2025].pdf
Leveraging AI to Streamline Operations for Nonprofits [05.20.2025].pdf
TechSoup
 
Statement by Linda McMahon on May 21, 2025
Statement by Linda McMahon on May 21, 2025Statement by Linda McMahon on May 21, 2025
Statement by Linda McMahon on May 21, 2025
Mebane Rash
 
Decision Tree-ID3,C4.5,CART,Regression Tree
Decision Tree-ID3,C4.5,CART,Regression TreeDecision Tree-ID3,C4.5,CART,Regression Tree
Decision Tree-ID3,C4.5,CART,Regression Tree
Global Academy of Technology
 
Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...
Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...
Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...
EduSkills OECD
 
Management of head injury in children.pdf
Management of head injury in children.pdfManagement of head injury in children.pdf
Management of head injury in children.pdf
sachin7989
 
The Splitting of the Moon (Shaqq al-Qamar).pdf
The Splitting of the Moon (Shaqq al-Qamar).pdfThe Splitting of the Moon (Shaqq al-Qamar).pdf
The Splitting of the Moon (Shaqq al-Qamar).pdf
Mirza Gazanfar Ali Baig
 
Taxonomy and Systematics: Classification and Diversity of Insects.pptx
Taxonomy and Systematics: Classification and Diversity of Insects.pptxTaxonomy and Systematics: Classification and Diversity of Insects.pptx
Taxonomy and Systematics: Classification and Diversity of Insects.pptx
Arshad Shaikh
 
From Building Products to Owning the Business
From Building Products to Owning the BusinessFrom Building Products to Owning the Business
From Building Products to Owning the Business
victoriamangiantini1
 
Regression Analysis-Machine Learning -Different Types
Regression Analysis-Machine Learning -Different TypesRegression Analysis-Machine Learning -Different Types
Regression Analysis-Machine Learning -Different Types
Global Academy of Technology
 
Module I. Democracy, Elections & Good Governance
Module I. Democracy, Elections & Good GovernanceModule I. Democracy, Elections & Good Governance
Module I. Democracy, Elections & Good Governance
srkmcop0027
 
Intervene with Precision: Zooming In as a Leader Without Micromanaging
Intervene with Precision: Zooming In as a Leader Without MicromanagingIntervene with Precision: Zooming In as a Leader Without Micromanaging
Intervene with Precision: Zooming In as a Leader Without Micromanaging
victoriamangiantini1
 
Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...
Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...
Industrial Engineering Assignment Help Guide | Expert Support for Academic Ex...
online college homework help
 
How to Manage Blanket Order in Odoo 18 - Odoo Slides
How to Manage Blanket Order in Odoo 18 - Odoo SlidesHow to Manage Blanket Order in Odoo 18 - Odoo Slides
How to Manage Blanket Order in Odoo 18 - Odoo Slides
Celine George
 
the dynastic history of Kalchuris of Tripuri
the dynastic history of Kalchuris of Tripurithe dynastic history of Kalchuris of Tripuri
the dynastic history of Kalchuris of Tripuri
PrachiSontakke5
 
The Board Doesn’t Care About Your Roadmap: Running Product at the Board
The Board Doesn’t Care About Your Roadmap: Running Product at the BoardThe Board Doesn’t Care About Your Roadmap: Running Product at the Board
The Board Doesn’t Care About Your Roadmap: Running Product at the Board
victoriamangiantini1
 
Combustion in Compression Ignition Engine (CIE)
Combustion in Compression Ignition Engine (CIE)Combustion in Compression Ignition Engine (CIE)
Combustion in Compression Ignition Engine (CIE)
NileshKumbhar21
 
Automated Actions (Automation) in the Odoo 18
Automated Actions (Automation) in the Odoo 18Automated Actions (Automation) in the Odoo 18
Automated Actions (Automation) in the Odoo 18
Celine George
 
Letter to Secretary Linda McMahon from U.S. Senators
Letter to Secretary Linda McMahon from U.S. SenatorsLetter to Secretary Linda McMahon from U.S. Senators
Letter to Secretary Linda McMahon from U.S. Senators
Mebane Rash
 
NS3 Unit 5 Matter changes presentation.pptx
NS3 Unit 5 Matter changes presentation.pptxNS3 Unit 5 Matter changes presentation.pptx
NS3 Unit 5 Matter changes presentation.pptx
manuelaromero2013
 
Leveraging AI to Streamline Operations for Nonprofits [05.20.2025].pdf
Leveraging AI to Streamline Operations for Nonprofits [05.20.2025].pdfLeveraging AI to Streamline Operations for Nonprofits [05.20.2025].pdf
Leveraging AI to Streamline Operations for Nonprofits [05.20.2025].pdf
TechSoup
 
Statement by Linda McMahon on May 21, 2025
Statement by Linda McMahon on May 21, 2025Statement by Linda McMahon on May 21, 2025
Statement by Linda McMahon on May 21, 2025
Mebane Rash
 
Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...
Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...
Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...
EduSkills OECD
 
Management of head injury in children.pdf
Management of head injury in children.pdfManagement of head injury in children.pdf
Management of head injury in children.pdf
sachin7989
 
The Splitting of the Moon (Shaqq al-Qamar).pdf
The Splitting of the Moon (Shaqq al-Qamar).pdfThe Splitting of the Moon (Shaqq al-Qamar).pdf
The Splitting of the Moon (Shaqq al-Qamar).pdf
Mirza Gazanfar Ali Baig
 
Ad

OperatingSystem01..(B.SC Part 2)

  • 1. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 1 Chapter 1: Introduction What is an Operating System? What are the components of an OS? What does an OS do? Short History of OSs Different types of OSs
  • 2. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 2 What is an Operating System? A program that acts as a bridge between a user of a computer and the computer hardware. Operating system goals:  Execute user programs and make solving user problems easier.  Make the computer system convenient to use. Use the computer hardware in an efficient manner.
  • 3. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 3 Computer System Components 1. Hardware – provides basic computing resources (CPU, memory, I/O devices). 2.Operating system – controls and coordinates the use of the hardware among the various application programs for the various users. 3.Applications programs – define the ways in which the system resources are used to solve the computing problems of the users (compilers, database systems, video games, business programs). 4.Users - (people, machines, other computers).
  • 4. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 4 Abstract View of System Components
  • 5. Structure of Operating System: Application Programs System Programs HARDWARE (Contd…) User
  • 6. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 6 Functions/Role of an OS User Environment - OS layer transforms bare hardware machine into higher level abstractions  Execution environment - process management, file manipulation, interrupt handling, I/O operations, language.  Error detection and handling  Protection and security  Fault tolerance and failure recovery(Remove problems)  Government(It makes the environment for all the devices to work together)  Resource Allocator(Specific request to Specific resource)  Control Program
  • 7. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 7 Functions of an OS Resource Management  Time management  CPU and disk transfer scheduling  Space management  main and secondary storage allocation  Synchronization and deadlock handling  critical selection, coordination  Accounting and status information  resource usage tracking, usage of CPU
  • 8. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 8 Mainframe Systems First computers used to solve many commercial and scientific applications Reduce setup time by batching similar jobs  serial card readers were initial input device then disks enabled job scheduling by the operating system Automatic job sequencing – automatically transfers control from one job to another. Early OS called resident monitor
  • 9. Simple Batch System multiple programs batched together and submitted by an operator. The user submit the job on cards or tapes to a program operator, who batches the jobs together sequentially and places the entire batch on an input device, for use by the monitor (program). Processor time was wasted. Disk was introduced, which was faster then cards. Job Scheduling Slide 9
  • 10. A. Frank - P. Weisberg Example card deck of a Job
  • 11. Uniprogramming (single tasking) Systems I/O devices very slow
  • 12. Batch Processing: In Batch processing same type of jobs batch (BATCH- a set of jobs with similar needs) together and execute at a time. The OS was simple, its major task was to transfer control from one job to the next. The job was submitted to the computer operator in form of punch cards. At some later time the output appeared. The OS was always resident in memory. (Ref. Fig. next slide) Common Input devices were card readers and tape drives.
  • 13. Batch Processing (Contd…): Common output devices were line printers, tape drives, and card punches. Users did not interact directly with the computer systems, but he prepared a job (comprising of the program, the data, & some control information). OS User progra m area
  • 14. Multiprogramming: Multiprogramming is a technique to execute number of programs simultaneously by a single processor. In Multiprogramming, number of processes reside in main memory at a time. The OS picks and begins to executes one of the jobs in the main memory. If any I/O wait happened in a process, then CPU switches from that job to another job. Hence CPU in not idle at any time.
  • 15. Multiprogramming (Contd…): OS Job 1 Job 2 Job 3 Job 4 Job 5 • Figure dipicts the layout of multiprogramming system. • The main memory consists of 5 jobs at a time, the CPU executes one by one. Advantages: •Efficient memory utilization •Throughput increases •CPU is never idle, so performance increases.
  • 16. A. Frank - P. Weisberg Multiprogramming
  • 17. Time Sharing Systems: Time sharing, or multitasking, is a logical extension of multiprogramming. Multiple jobs are executed by switching the CPU between them. In this, the CPU time is shared by different processes, so it is called as “Time sharing Systems”. Time slice is defined by the OS, for sharing CPU time between processes. CPU scheduling is used Examples: linex, Unix, etc.,
  • 18. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 18 Desktop(Personal) Systems Personal computers – computer system dedicated to a single user. I/O devices – keyboards, mouse, display screens, small printers. User convenience and responsiveness. Can adopt technology developed for larger operating systems. Often individuals have sole use of computer and do not need advanced CPU utilization of protection features. May run several different types of operating systems (Windows, MacOS, UNIX, Linux)
  • 19. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 19 Multi Processor/Parallel Systems Multiprocessor systems with more than one CPU in close communication which work on a single task simultaneously. It is also called as Tightly coupled system .They share common system clock and data structure. Advantages of parallel system:  Increased throughput with more processors  Economical – share peripherals, mass storage, power etc. as opposed to individual PCs  Increased reliability  graceful degradation / fault tolerant  failure of one processor will slow down but not halt the system  other processors pick up the slack
  • 20. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 20 Types of Multi processors(Cont.) Symmetric multiprocessing (SMP)  A method in which multiple processors work together on the same task is called SMP.  Many processes can run at once without performance deterioration.  Most modern operating systems support SMP Asymmetric multiprocessing(AMP)  Each processor is assigned a specific task; controlling processor schedules and allocates work to other processors.  More common in extremely large systems
  • 21. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 21 Distributed Systems Distribute the computation among several physical processors. Loosely coupled system – each processor has its own local memory; processors communicate with one another through various communications lines, such as high- speed buses. Advantages of distributed systems.  Resource sharing  Computation speed up – load sharing  Reliability  Communications between processors and processes
  • 22. Clustered Systems A clustered systems uses multiple CPU’s to accomplish a task. It is different from parallel system in that clustered systems consists of two or more individual systems coupled together. They are linked through LAN. They perform monitoring and running. It has two types Asymetric Clustering :(One monitors and other runs application) Symetric Clustering:(Both monitor and both runs) Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 22
  • 23. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 23 Real-Time Systems A real time system is a that system which ensures the exact time of a job. If a real time system does not complete a task in a certain time ,it may cause a break down of the entire system running.e.g Industrial control system, airplane guidance etc. Often used as a control device in a dedicated application such as medical imaging systems, industrial control systems, and some display systems. Hard real-time: It guaranties that a job will complete within a specified time period. This system must ensure that all delays' on processing, input and output are bounded. The system can not wait indefinitely so the hard time systems are usually very limited. Auto pilot system.
  • 24. Soft real-time  Limited utility in industrial control of robotics  It is much less real restrictive version of a hard real time system. It does not guarantee that a job will complete in a fix time. However it tries its best to complete the job on time. It works on priority system.  Useful in applications (multimedia, virtual reality) requiring advanced operating-system features. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 24
  • 25. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 25 Handheld Systems Personal Digital Assistants (PDAs) Cellular telephones I pad IPods' Issues:  Limited memory (512KB to 8MB) requires efficient management  Slow processors  Small display screens.
  • 26. Interrupt : A change in execution caused by an external event Definition: an event external to the currently executing process that causes a change in the normal flow of instruction execution; Usually generated by hardware devices external to the CPU Typically indicate that some device needs service Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 26
  • 29. Classes of Interrupts Supervisor call interrupt I/O call interrupt External Interrupt Restart interrupt Program Check interrupt Machine check Interrupt. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 29
  • 30. O.S MODE A processor in a computer running Windows has two different modes: user mode and kernel mode. The processor switches between the two modes depending on what type of code is running on the processor. Applications run in user mode, and core operating system components run in kernel mode. Many drivers run in kernel mode, but some drivers run in user mode. When you start a user-mode application, Windows creates a process for the application Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 30
  • 31. OPERATING SYSTEM COMPONENTS Process management: A program in execution is called process. The following activities are connected with process management. 1) Process Creation 2) Process deletion 3) Process Suspension 4) Process Resumption Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 31
  • 32. Main Memory Management: It includes 1. Virtual memory 2. Paging(Swapping) 3. Thrashing( Wasting of time in swapping) 4. Keeping record of which memory is free and being used. 5. De allocating memory space as needed.  Secondary Storage Management: 1. Free space management 2. Storage Allocation 3. Disk Scheduling Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 32
  • 33. I/O System management: 1. Buffering 2. General Device Driver 3. Specific Device Driver  File management: 1) File Creation 2) File deletion 3) File Suspension 4) File Resumption Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 33
  • 34. • Protection System: If a computer has multiple users and allows concurrent execution of multiple processes, the processes must be protected from each other activities. It must a. Distinguish between authorized and unauthorized usage. b. Specify the controls that are to be imposed. c. Provide a means of enforcement. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 34
  • 35. KERNEL The kernel's primary function is to manage the computer's hardware and resources and allow other programs to run and use these resources. In computing, the kernel is a computer program that manages input/output requests from software and translates them into data processinginstructions for the central processing unit and other electronic components of a computer. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 35
  • 36. The kernel is a fundamental part of a modern computer's operating system When a computer program (in this case called a process) makes requests of the kernel, the request is called a system call. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 36
  • 37. Silberschatz / OS Concepts / 6e - Chapter 1 Introduction Slide 37
  翻译: