SlideShare uma empresa Scribd logo
1 de 15
Silberschatz, Galvin and Gagne 2002
1.1
Operating System Concepts
What is an Operating System?
 A program that acts as an intermediary 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, Galvin and Gagne 2002
1.2
Operating System Concepts
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 (database systems, video games,
business programs).
4. Users (people, machines, other computers).
Silberschatz, Galvin and Gagne 2002
1.3
Operating System Concepts
Abstract View of System Components
Silberschatz, Galvin and Gagne 2002
1.4
Operating System Concepts
Operating System- User and System
View
 Resource allocator – manages and allocates resources.
 Control program – controls the execution of user
programs and operations of I/O devices .
 Kernel – the one program running at all times (all else
being application programs).
Silberschatz, Galvin and Gagne 2002
1.5
Operating System Concepts
Functions of Operating System
 Memory Management
 Process Management
 Device Management
 File Management
 Security
 Control over system performance
 Job accounting
 Error detecting aids
 Coordination between other software and users
Silberschatz, Galvin and Gagne 2002
1.6
Operating System Concepts
Operating System Operations
 There are two modes of operation in the operating system
to make sure it works correctly. These are user mode and
kernel mode
Silberschatz, Galvin and Gagne 2002
1.7
Operating System Concepts
Operating System Operations
 User Mode
 The system is in user mode when the operating
system is running a user application such as handling
a text editor
 The transition from user mode to kernel mode occurs
when the application requests the help of operating
system or an interrupt or a system call occurs
 The mode bit is set to 1 in the user mode. It is
changed from 1 to 0 when switching from user mode
to kernel mode
Silberschatz, Galvin and Gagne 2002
1.8
Operating System Concepts
Operating System Operations
 Kernel Mode
 The system starts in kernel mode when it boots and
after the operating system is loaded, it executes
applications in user mode
 There are some privileged instructions that can only
be executed in kernel mode
 These are interrupt instructions, input output
management etc
 If the privileged instructions are executed in user
mode, it is illegal and a trap is generated
Silberschatz, Galvin and Gagne 2002
1.9
Operating System Concepts
Operating System Operations
 Operating system can be implemented with the help of
various structures.
 The structure of the OS depends mainly on how the
various common components of the operating system are
interconnected and melded into the kernel
 Depending on this we have following structures of the
operating system
 Simple structure
 Layered structure
Silberschatz, Galvin and Gagne 2002
1.10
Operating System Concepts
Operating System Structure
 Simple Structure
 The system starts in kernel mode when it boots and
after the operating system is loaded, it executes
applications in user mode
 There are some privileged instructions that can only
be executed in kernel mode
 These are interrupt instructions, input output
management etc
 If the privileged instructions are executed in user
mode, it is illegal and a trap is generated
Silberschatz, Galvin and Gagne 2002
1.11
Operating System Concepts
Operating System Structure
 Simple Structure
 A common example for simple structure is MS-DOS. It
was designed simply for a niche amount for people
Silberschatz, Galvin and Gagne 2002
1.12
Operating System Concepts
Operating System Structure
 Advantages of Simple structure:
 It delivers better application performance because of
the few interfaces between the application program
and the hardware.
 Easy for kernel developers to develop such an
operating system.
 Disadvantages of Simple structure:
 The structure is very complicated as no clear
boundaries exists between modules.
 It does not enforce data hiding in the operating system.
Silberschatz, Galvin and Gagne 2002
1.13
Operating System Concepts
Operating System Structure
 Layered Structure
 One way to achieve modularity in the operating system is
the layered approach.
 In this, the bottom layer is the hardware and the topmost
layer is the user interface
Silberschatz, Galvin and Gagne 2002
1.14
Operating System Concepts
Operating System Structure
 Layered Structure
 One way to achieve modularity in the operating system is
the layered approach.
 In this, the bottom layer is the hardware and the topmost
layer is the user interface
Silberschatz, Galvin and Gagne 2002
1.15
Operating System Concepts
Operating System Structure
 Advantages of Layered structure:
 Layering makes it easier to enhance the operating
system as implementation of a layer can be changed
easily without affecting the other layers.
 It is very easy to perform debugging and system
verification.
 Disadvantages of Layered structure:
 In this structure the application performance is
degraded as compared to simple structure.
 It requires careful planning for designing the layers
as higher layers use the functionalities of only the
lower layers.

Mais conteúdo relacionado

Semelhante a U1-LP1.ppt

Operating System ch1 introduction
Operating System ch1 introductionOperating System ch1 introduction
Operating System ch1 introduction
NinJy Shabbir
 
Operating System Chapter Introduction 1
Operating System Chapter Introduction  1Operating System Chapter Introduction  1
Operating System Chapter Introduction 1
M7mdZh
 
ch1.ppt
ch1.pptch1.ppt

Semelhante a U1-LP1.ppt (20)

ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
ch1 (2).ppt
ch1 (2).pptch1 (2).ppt
ch1 (2).ppt
 
ch1-1.pptx
ch1-1.pptxch1-1.pptx
ch1-1.pptx
 
Operating System - Unit I - Introduction
Operating System - Unit I - IntroductionOperating System - Unit I - Introduction
Operating System - Unit I - Introduction
 
Operating System
Operating SystemOperating System
Operating System
 
Operating System ch1 introduction
Operating System ch1 introductionOperating System ch1 introduction
Operating System ch1 introduction
 
Operating systems galvin-ch1
Operating systems galvin-ch1Operating systems galvin-ch1
Operating systems galvin-ch1
 
Operating System Chapter Introduction 1
Operating System Chapter Introduction  1Operating System Chapter Introduction  1
Operating System Chapter Introduction 1
 
Ch1
Ch1Ch1
Ch1
 
Windows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolWindows Architecture Explained by Stacksol
Windows Architecture Explained by Stacksol
 
operating system notes by madhavi.pdf
operating system notes by madhavi.pdfoperating system notes by madhavi.pdf
operating system notes by madhavi.pdf
 
Introduction_to_OperatingSystems_ch1.ppt
Introduction_to_OperatingSystems_ch1.pptIntroduction_to_OperatingSystems_ch1.ppt
Introduction_to_OperatingSystems_ch1.ppt
 
1.introduction
1.introduction1.introduction
1.introduction
 
1.Introduction
1.Introduction1.Introduction
1.Introduction
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 

Mais de AJAYVISHALRP (10)

finalppt-150606051347-lva1-app6892.pptx
finalppt-150606051347-lva1-app6892.pptxfinalppt-150606051347-lva1-app6892.pptx
finalppt-150606051347-lva1-app6892.pptx
 
WH PAPER PRESENTATION PPT.pptx
WH PAPER PRESENTATION PPT.pptxWH PAPER PRESENTATION PPT.pptx
WH PAPER PRESENTATION PPT.pptx
 
Data Storage Access and Security.pptx
Data Storage Access and Security.pptxData Storage Access and Security.pptx
Data Storage Access and Security.pptx
 
U3-PPT-1 (1).ppt
U3-PPT-1 (1).pptU3-PPT-1 (1).ppt
U3-PPT-1 (1).ppt
 
U2-LP2.ppt
U2-LP2.pptU2-LP2.ppt
U2-LP2.ppt
 
disk scheduling algorithms.pptx
disk scheduling algorithms.pptxdisk scheduling algorithms.pptx
disk scheduling algorithms.pptx
 
1G1.pptx
1G1.pptx1G1.pptx
1G1.pptx
 
WH PAPER PRESENTATION PPT.pptx
WH PAPER PRESENTATION PPT.pptxWH PAPER PRESENTATION PPT.pptx
WH PAPER PRESENTATION PPT.pptx
 
sorting1.pptx
sorting1.pptxsorting1.pptx
sorting1.pptx
 
AI Pugal.pptx
AI Pugal.pptxAI Pugal.pptx
AI Pugal.pptx
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

U1-LP1.ppt

  • 1. Silberschatz, Galvin and Gagne 2002 1.1 Operating System Concepts What is an Operating System?  A program that acts as an intermediary 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.
  • 2. Silberschatz, Galvin and Gagne 2002 1.2 Operating System Concepts 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 (database systems, video games, business programs). 4. Users (people, machines, other computers).
  • 3. Silberschatz, Galvin and Gagne 2002 1.3 Operating System Concepts Abstract View of System Components
  • 4. Silberschatz, Galvin and Gagne 2002 1.4 Operating System Concepts Operating System- User and System View  Resource allocator – manages and allocates resources.  Control program – controls the execution of user programs and operations of I/O devices .  Kernel – the one program running at all times (all else being application programs).
  • 5. Silberschatz, Galvin and Gagne 2002 1.5 Operating System Concepts Functions of Operating System  Memory Management  Process Management  Device Management  File Management  Security  Control over system performance  Job accounting  Error detecting aids  Coordination between other software and users
  • 6. Silberschatz, Galvin and Gagne 2002 1.6 Operating System Concepts Operating System Operations  There are two modes of operation in the operating system to make sure it works correctly. These are user mode and kernel mode
  • 7. Silberschatz, Galvin and Gagne 2002 1.7 Operating System Concepts Operating System Operations  User Mode  The system is in user mode when the operating system is running a user application such as handling a text editor  The transition from user mode to kernel mode occurs when the application requests the help of operating system or an interrupt or a system call occurs  The mode bit is set to 1 in the user mode. It is changed from 1 to 0 when switching from user mode to kernel mode
  • 8. Silberschatz, Galvin and Gagne 2002 1.8 Operating System Concepts Operating System Operations  Kernel Mode  The system starts in kernel mode when it boots and after the operating system is loaded, it executes applications in user mode  There are some privileged instructions that can only be executed in kernel mode  These are interrupt instructions, input output management etc  If the privileged instructions are executed in user mode, it is illegal and a trap is generated
  • 9. Silberschatz, Galvin and Gagne 2002 1.9 Operating System Concepts Operating System Operations  Operating system can be implemented with the help of various structures.  The structure of the OS depends mainly on how the various common components of the operating system are interconnected and melded into the kernel  Depending on this we have following structures of the operating system  Simple structure  Layered structure
  • 10. Silberschatz, Galvin and Gagne 2002 1.10 Operating System Concepts Operating System Structure  Simple Structure  The system starts in kernel mode when it boots and after the operating system is loaded, it executes applications in user mode  There are some privileged instructions that can only be executed in kernel mode  These are interrupt instructions, input output management etc  If the privileged instructions are executed in user mode, it is illegal and a trap is generated
  • 11. Silberschatz, Galvin and Gagne 2002 1.11 Operating System Concepts Operating System Structure  Simple Structure  A common example for simple structure is MS-DOS. It was designed simply for a niche amount for people
  • 12. Silberschatz, Galvin and Gagne 2002 1.12 Operating System Concepts Operating System Structure  Advantages of Simple structure:  It delivers better application performance because of the few interfaces between the application program and the hardware.  Easy for kernel developers to develop such an operating system.  Disadvantages of Simple structure:  The structure is very complicated as no clear boundaries exists between modules.  It does not enforce data hiding in the operating system.
  • 13. Silberschatz, Galvin and Gagne 2002 1.13 Operating System Concepts Operating System Structure  Layered Structure  One way to achieve modularity in the operating system is the layered approach.  In this, the bottom layer is the hardware and the topmost layer is the user interface
  • 14. Silberschatz, Galvin and Gagne 2002 1.14 Operating System Concepts Operating System Structure  Layered Structure  One way to achieve modularity in the operating system is the layered approach.  In this, the bottom layer is the hardware and the topmost layer is the user interface
  • 15. Silberschatz, Galvin and Gagne 2002 1.15 Operating System Concepts Operating System Structure  Advantages of Layered structure:  Layering makes it easier to enhance the operating system as implementation of a layer can be changed easily without affecting the other layers.  It is very easy to perform debugging and system verification.  Disadvantages of Layered structure:  In this structure the application performance is degraded as compared to simple structure.  It requires careful planning for designing the layers as higher layers use the functionalities of only the lower layers.