SlideShare une entreprise Scribd logo
1  sur  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.

Contenu connexe

Similaire à 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

Similaire à 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
 

Plus 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
 

Dernier

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Dernier (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
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
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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
 
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
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

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.