SlideShare ist ein Scribd-Unternehmen logo
1 von 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.

Weitere ähnliche Inhalte

Ähnlich wie U1-LP1.ppt

Ähnlich wie 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
 

Mehr von AJAYVISHALRP

finalppt-150606051347-lva1-app6892.pptx
finalppt-150606051347-lva1-app6892.pptxfinalppt-150606051347-lva1-app6892.pptx
finalppt-150606051347-lva1-app6892.pptxAJAYVISHALRP
 
WH PAPER PRESENTATION PPT.pptx
WH PAPER PRESENTATION PPT.pptxWH PAPER PRESENTATION PPT.pptx
WH PAPER PRESENTATION PPT.pptxAJAYVISHALRP
 
Data Storage Access and Security.pptx
Data Storage Access and Security.pptxData Storage Access and Security.pptx
Data Storage Access and Security.pptxAJAYVISHALRP
 
disk scheduling algorithms.pptx
disk scheduling algorithms.pptxdisk scheduling algorithms.pptx
disk scheduling algorithms.pptxAJAYVISHALRP
 
WH PAPER PRESENTATION PPT.pptx
WH PAPER PRESENTATION PPT.pptxWH PAPER PRESENTATION PPT.pptx
WH PAPER PRESENTATION PPT.pptxAJAYVISHALRP
 

Mehr von 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
 

Kürzlich hochgeladen

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
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 DevelopmentsTrustArc
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
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 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
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 WorkerThousandEyes
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
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 2024The Digital Insurer
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Kürzlich hochgeladen (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
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
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

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.