SlideShare a Scribd company logo
1 of 17
OPERATING SYSTEMS

    OVERVIEW



    Jerry Breecher
    1: Operating Systems Overview   1
OPERATING SYSTEM
                   OVERVIEW
           WHAT IS AN OPERATING SYSTEM?

•   An interface between users and hardware - an environment "architecture”
•   Allows convenient usage; hides the tedious stuff
•   Allows efficient usage; parallel activity, avoids wasted cycles
•   Provides information protection
•   Gives each user a slice of the resources
•   Acts as a control program.




                             1: Operating Systems Overview                    2
OPERATING                                  The Layers Of
                                                       A System
       SYSTEM OVERVIEW
Humans




Program Interface



User Programs


O.S. Interface

O.S.

Hardware Interface/
Privileged Instructions

Disk/Tape/Memory
                          1: Operating Systems Overview          3
OPERATING                                            Components
 SYSTEM OVERVIEW
A mechanism for scheduling jobs or processes. Scheduling can be as simple
   as running the next process, or it can use relatively complex rules to pick
   a running process.

A method for simultaneous CPU execution and IO handling. Processing is
  going on even as IO is occurring in preparation for future CPU work.

Off Line Processing; not only are IO and CPU happening concurrently, but
   some off-board processing is occurring with the IO.




                         1: Operating Systems Overview                   4
OPERATING                                               Components
 SYSTEM OVERVIEW
The CPU is wasted if a job waits for I/O. This leads to:

    • Multiprogramming ( dynamic switching ). While one job waits for a
      resource, the CPU can find another job to run. It means that several jobs
      are ready to run and only need the CPU in order to continue.

CPU scheduling is the subject of Chapter 6.

All of this leads to:
     •     memory management
     •     resource scheduling
     •     deadlock protection

which are the subject of the rest of this course.

                            1: Operating Systems Overview                 5
OPERATING
                                                                  Characteristics
    SYSTEM OVERVIEW
Other Characteristics include:
•   Time Sharing - multiprogramming environment that's also interactive.

•   Multiprocessing - Tightly coupled systems that communicate via shared memory. Used
    for scientific applications. Used for speed improvement by putting together a number of off-
    the-shelf processors.




•   Distributed Systems - Loosely coupled systems that communicate via message passing.
    Advantages include resource sharing, speed up, reliability, communication.




•   Real Time Systems - Rapid response time is main characteristic.         Used in control of
    applications where rapid response to a stimulus is essential.
                                 1: Operating Systems Overview                            6
OPERATING
                                                             Characteristics
SYSTEM OVERVIEW
Interrupts:
•   Interrupt transfers control to the interrupt service routine generally, through the
    interrupt vector, which contains the addresses of all the service routines.
•   Interrupt architecture must save the address of the interrupted instruction.
•   Incoming interrupts are disabled while another interrupt is being processed to prevent
    a lost interrupt.
•   A trap is a software-generated interrupt caused either by an error or a user request.
•   An operating system is interrupt driven.




                             1: Operating Systems Overview                            7
OPERATING                                          Hardware
 SYSTEM OVERVIEW                                        Support

   These are the
 devices that make
up a typical system.




    Any of these
 devices can cause
    an electrical
interrupt that grabs
the attention of the
        CPU.



                       1: Operating Systems Overview              8
OPERATING                                   Hardware
 SYSTEM OVERVIEW                                 Support

Sequence
 of events
     for
processing
   an IO
 request.



  Comparing
Synchronous
     and
Asynchronous
IO Operations




                1: Operating Systems Overview              9
OPERATING                            Hardware
SYSTEM OVERVIEW                          Support
                                              This is O.S.
                                         Bookkeeping. These
                                             structures are
                                           necessary to keep
                                        track of IO in progress.




        1: Operating Systems Overview                   10
OPERATING                                                     Storage
 SYSTEM OVERVIEW                                                 Hierarchy
Very fast storage is very expensive. So the Operating System manages a hierarchy of
storage devices in order to make the best use of resources. In fact, considerable effort
goes into this support.

Fast and Expensive




   Slow an Cheap

                            1: Operating Systems Overview                         11
OPERATING                                    Storage
SYSTEM OVERVIEW                                Hierarchy
Performance:




               1: Operating Systems Overview           12
OPERATING                                            Storage
 SYSTEM OVERVIEW                                        Hierarchy
Caching:
•Important principle, performed at many levels in a computer (in hardware,
operating system, software)
•Information in use copied from slower to faster storage temporarily
•Faster storage (cache) checked first to determine if information is there
     • If it is, information used directly from the cache (fast)
     • If not, data copied to cache and used there
•Cache smaller than storage being cached
     • Cache management important design problem
     • Cache size and replacement policy




                        1: Operating Systems Overview                13
OPERATING                                                 Protection
 SYSTEM OVERVIEW
The goal is protecting the Operating System and
others from malicious or ignorant users.

The User/Supervisor      Mode    and    privileged
instructions.

Concurrent threads might interfere with others.
This leads to protection of resources by
user/supervisor mode. These resources include:

    I/O Define I/O instructions as privileged; they
         can be executed only in Supervisor
         mode. System calls get us from user to
         supervisor mode.




                              1: Operating Systems Overview            14
OPERATING                                         Protection
SYSTEM OVERVIEW
 Memory       A user program can only access its own logical memory. For
    instance, it can't modify supervisor code.   Depends on an address
    translation scheme such as that shown here.




                     1: Operating Systems Overview                15
OPERATING                                            Protection
SYSTEM OVERVIEW
 CPU         A clock prevents programs from using all the CPU time. This
    clock causes an interrupt that causes the operating system to gain control
    from a user program.


 For machines connected together, this protection must extend across:
     Shared resources,
     Multiprocessor Architectures,
     Clustered Systems
 The practice of this is called “distributed operating systems”.




                       1: Operating Systems Overview                    16
OPERATING SYSTEM OVERVIEW
                               WRAPUP
We’ve completed our first overview of an Operating System – this was
the equivalent of a Satellite picture.

The next view will be at the level of a high flying plane.

After that, we’ll be at ground level, looking at pieces in detail.




                        1: Operating Systems Overview                17

More Related Content

What's hot

Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its ComponentsMahmuda Rahman
 
Operating System BCA 301
Operating System BCA 301Operating System BCA 301
Operating System BCA 301cpjcollege
 
Bsc cs 1 fit u-3 operating systems
Bsc cs 1 fit u-3 operating systemsBsc cs 1 fit u-3 operating systems
Bsc cs 1 fit u-3 operating systemsRai University
 
Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1abhinav baba
 
6 multiprogramming & time sharing
6 multiprogramming & time sharing6 multiprogramming & time sharing
6 multiprogramming & time sharingmyrajendra
 
4 various operating systems
4 various operating systems4 various operating systems
4 various operating systemsmyrajendra
 
Operating system introducton and tyes
Operating system introducton and tyesOperating system introducton and tyes
Operating system introducton and tyesNancy Verma
 
Practical examples for different types of operating systems.
Practical examples for different types of  operating systems.Practical examples for different types of  operating systems.
Practical examples for different types of operating systems.Deepa
 
Lecture 3,4 operating systems
Lecture 3,4   operating systemsLecture 3,4   operating systems
Lecture 3,4 operating systemsPradeep Kumar TS
 
ITFT_Device management in Operating System
ITFT_Device management in Operating SystemITFT_Device management in Operating System
ITFT_Device management in Operating SystemSneh Prabha
 
Operating systems By Awais
Operating systems By AwaisOperating systems By Awais
Operating systems By AwaisAwaisch3
 
Ch1: Operating System- Introduction
Ch1: Operating System- IntroductionCh1: Operating System- Introduction
Ch1: Operating System- IntroductionAhmar Hashmi
 
System programs in o.s. for bca and bscit students by hardik nathani
System programs in o.s. for bca and bscit students by hardik nathaniSystem programs in o.s. for bca and bscit students by hardik nathani
System programs in o.s. for bca and bscit students by hardik nathaniHardik Nathani
 
Operating system and its types
Operating system and its types Operating system and its types
Operating system and its types vimal kumar arora
 

What's hot (18)

Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its Components
 
Operating System BCA 301
Operating System BCA 301Operating System BCA 301
Operating System BCA 301
 
Bsc cs 1 fit u-3 operating systems
Bsc cs 1 fit u-3 operating systemsBsc cs 1 fit u-3 operating systems
Bsc cs 1 fit u-3 operating systems
 
Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1
 
6 multiprogramming & time sharing
6 multiprogramming & time sharing6 multiprogramming & time sharing
6 multiprogramming & time sharing
 
4 various operating systems
4 various operating systems4 various operating systems
4 various operating systems
 
Operating system
Operating systemOperating system
Operating system
 
Operating system introducton and tyes
Operating system introducton and tyesOperating system introducton and tyes
Operating system introducton and tyes
 
Practical examples for different types of operating systems.
Practical examples for different types of  operating systems.Practical examples for different types of  operating systems.
Practical examples for different types of operating systems.
 
Os1
Os1Os1
Os1
 
Operating system
Operating systemOperating system
Operating system
 
Lecture 3,4 operating systems
Lecture 3,4   operating systemsLecture 3,4   operating systems
Lecture 3,4 operating systems
 
ITFT_Device management in Operating System
ITFT_Device management in Operating SystemITFT_Device management in Operating System
ITFT_Device management in Operating System
 
Operating systems By Awais
Operating systems By AwaisOperating systems By Awais
Operating systems By Awais
 
Ch1: Operating System- Introduction
Ch1: Operating System- IntroductionCh1: Operating System- Introduction
Ch1: Operating System- Introduction
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
System programs in o.s. for bca and bscit students by hardik nathani
System programs in o.s. for bca and bscit students by hardik nathaniSystem programs in o.s. for bca and bscit students by hardik nathani
System programs in o.s. for bca and bscit students by hardik nathani
 
Operating system and its types
Operating system and its types Operating system and its types
Operating system and its types
 

Similar to Os

Section01 overview (1)
Section01 overview (1)Section01 overview (1)
Section01 overview (1)Vimarsh Padha
 
OPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESOPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESsuthi
 
Intermediate Operating Systems
Intermediate Operating SystemsIntermediate Operating Systems
Intermediate Operating SystemsJohn Cutajar
 
1 introduction
1 introduction1 introduction
1 introductionMohd Arif
 
Operating System and related questions
Operating System and related questionsOperating System and related questions
Operating System and related questionsimdurgesh
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxakhilagajjala
 
Operating systems
Operating systemsOperating systems
Operating systemsanishgoel
 
lecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categorieslecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categoriesWajeehaBaig
 
Operating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdfOperating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdfFahanaAbdulVahab
 

Similar to Os (20)

Section01 overview (1)
Section01 overview (1)Section01 overview (1)
Section01 overview (1)
 
Section01 overview
Section01 overviewSection01 overview
Section01 overview
 
Section01-Overview.ppt
Section01-Overview.pptSection01-Overview.ppt
Section01-Overview.ppt
 
OPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESOPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTES
 
Intermediate Operating Systems
Intermediate Operating SystemsIntermediate Operating Systems
Intermediate Operating Systems
 
OS-ch01-2024.ppt
OS-ch01-2024.pptOS-ch01-2024.ppt
OS-ch01-2024.ppt
 
1 introduction
1 introduction1 introduction
1 introduction
 
OS Content.pdf
OS Content.pdfOS Content.pdf
OS Content.pdf
 
OS Structure
OS StructureOS Structure
OS Structure
 
Operating System and related questions
Operating System and related questionsOperating System and related questions
Operating System and related questions
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptx
 
Operating systems
Operating systemsOperating systems
Operating systems
 
lecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categorieslecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categories
 
Virtualization Basics
Virtualization BasicsVirtualization Basics
Virtualization Basics
 
1.introduction
1.introduction1.introduction
1.introduction
 
1.Introduction
1.Introduction1.Introduction
1.Introduction
 
chapter1.ppt
chapter1.pptchapter1.ppt
chapter1.ppt
 
Operating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdfOperating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdf
 
VOSUnit
VOSUnitVOSUnit
VOSUnit
 
Lect01
Lect01Lect01
Lect01
 

More from Vaibhav Bajaj (20)

Stroustrup c++0x overview
Stroustrup c++0x overviewStroustrup c++0x overview
Stroustrup c++0x overview
 
P smile
P smileP smile
P smile
 
Ppt history-of-apple2203 (1)
Ppt history-of-apple2203 (1)Ppt history-of-apple2203 (1)
Ppt history-of-apple2203 (1)
 
Oop1
Oop1Oop1
Oop1
 
Mem hierarchy
Mem hierarchyMem hierarchy
Mem hierarchy
 
Database
DatabaseDatabase
Database
 
C++0x
C++0xC++0x
C++0x
 
Blu ray disc slides
Blu ray disc slidesBlu ray disc slides
Blu ray disc slides
 
Assembler
AssemblerAssembler
Assembler
 
Assembler (2)
Assembler (2)Assembler (2)
Assembler (2)
 
Projection of solids
Projection of solidsProjection of solids
Projection of solids
 
Projection of planes
Projection of planesProjection of planes
Projection of planes
 
Ortographic projection
Ortographic projectionOrtographic projection
Ortographic projection
 
Isometric
IsometricIsometric
Isometric
 
Intersection 1
Intersection 1Intersection 1
Intersection 1
 
Important q
Important qImportant q
Important q
 
Eg o31
Eg o31Eg o31
Eg o31
 
Development of surfaces of solids
Development of surfaces of solidsDevelopment of surfaces of solids
Development of surfaces of solids
 
Development of surfaces of solids copy
Development of surfaces of solids   copyDevelopment of surfaces of solids   copy
Development of surfaces of solids copy
 
Curves2
Curves2Curves2
Curves2
 

Recently uploaded

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 

Recently uploaded (20)

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 

Os

  • 1. OPERATING SYSTEMS OVERVIEW Jerry Breecher 1: Operating Systems Overview 1
  • 2. OPERATING SYSTEM OVERVIEW WHAT IS AN OPERATING SYSTEM? • An interface between users and hardware - an environment "architecture” • Allows convenient usage; hides the tedious stuff • Allows efficient usage; parallel activity, avoids wasted cycles • Provides information protection • Gives each user a slice of the resources • Acts as a control program. 1: Operating Systems Overview 2
  • 3. OPERATING The Layers Of A System SYSTEM OVERVIEW Humans Program Interface User Programs O.S. Interface O.S. Hardware Interface/ Privileged Instructions Disk/Tape/Memory 1: Operating Systems Overview 3
  • 4. OPERATING Components SYSTEM OVERVIEW A mechanism for scheduling jobs or processes. Scheduling can be as simple as running the next process, or it can use relatively complex rules to pick a running process. A method for simultaneous CPU execution and IO handling. Processing is going on even as IO is occurring in preparation for future CPU work. Off Line Processing; not only are IO and CPU happening concurrently, but some off-board processing is occurring with the IO. 1: Operating Systems Overview 4
  • 5. OPERATING Components SYSTEM OVERVIEW The CPU is wasted if a job waits for I/O. This leads to: • Multiprogramming ( dynamic switching ). While one job waits for a resource, the CPU can find another job to run. It means that several jobs are ready to run and only need the CPU in order to continue. CPU scheduling is the subject of Chapter 6. All of this leads to: • memory management • resource scheduling • deadlock protection which are the subject of the rest of this course. 1: Operating Systems Overview 5
  • 6. OPERATING Characteristics SYSTEM OVERVIEW Other Characteristics include: • Time Sharing - multiprogramming environment that's also interactive. • Multiprocessing - Tightly coupled systems that communicate via shared memory. Used for scientific applications. Used for speed improvement by putting together a number of off- the-shelf processors. • Distributed Systems - Loosely coupled systems that communicate via message passing. Advantages include resource sharing, speed up, reliability, communication. • Real Time Systems - Rapid response time is main characteristic. Used in control of applications where rapid response to a stimulus is essential. 1: Operating Systems Overview 6
  • 7. OPERATING Characteristics SYSTEM OVERVIEW Interrupts: • Interrupt transfers control to the interrupt service routine generally, through the interrupt vector, which contains the addresses of all the service routines. • Interrupt architecture must save the address of the interrupted instruction. • Incoming interrupts are disabled while another interrupt is being processed to prevent a lost interrupt. • A trap is a software-generated interrupt caused either by an error or a user request. • An operating system is interrupt driven. 1: Operating Systems Overview 7
  • 8. OPERATING Hardware SYSTEM OVERVIEW Support These are the devices that make up a typical system. Any of these devices can cause an electrical interrupt that grabs the attention of the CPU. 1: Operating Systems Overview 8
  • 9. OPERATING Hardware SYSTEM OVERVIEW Support Sequence of events for processing an IO request. Comparing Synchronous and Asynchronous IO Operations 1: Operating Systems Overview 9
  • 10. OPERATING Hardware SYSTEM OVERVIEW Support This is O.S. Bookkeeping. These structures are necessary to keep track of IO in progress. 1: Operating Systems Overview 10
  • 11. OPERATING Storage SYSTEM OVERVIEW Hierarchy Very fast storage is very expensive. So the Operating System manages a hierarchy of storage devices in order to make the best use of resources. In fact, considerable effort goes into this support. Fast and Expensive Slow an Cheap 1: Operating Systems Overview 11
  • 12. OPERATING Storage SYSTEM OVERVIEW Hierarchy Performance: 1: Operating Systems Overview 12
  • 13. OPERATING Storage SYSTEM OVERVIEW Hierarchy Caching: •Important principle, performed at many levels in a computer (in hardware, operating system, software) •Information in use copied from slower to faster storage temporarily •Faster storage (cache) checked first to determine if information is there • If it is, information used directly from the cache (fast) • If not, data copied to cache and used there •Cache smaller than storage being cached • Cache management important design problem • Cache size and replacement policy 1: Operating Systems Overview 13
  • 14. OPERATING Protection SYSTEM OVERVIEW The goal is protecting the Operating System and others from malicious or ignorant users. The User/Supervisor Mode and privileged instructions. Concurrent threads might interfere with others. This leads to protection of resources by user/supervisor mode. These resources include: I/O Define I/O instructions as privileged; they can be executed only in Supervisor mode. System calls get us from user to supervisor mode. 1: Operating Systems Overview 14
  • 15. OPERATING Protection SYSTEM OVERVIEW Memory A user program can only access its own logical memory. For instance, it can't modify supervisor code. Depends on an address translation scheme such as that shown here. 1: Operating Systems Overview 15
  • 16. OPERATING Protection SYSTEM OVERVIEW CPU A clock prevents programs from using all the CPU time. This clock causes an interrupt that causes the operating system to gain control from a user program. For machines connected together, this protection must extend across: Shared resources, Multiprocessor Architectures, Clustered Systems The practice of this is called “distributed operating systems”. 1: Operating Systems Overview 16
  • 17. OPERATING SYSTEM OVERVIEW WRAPUP We’ve completed our first overview of an Operating System – this was the equivalent of a Satellite picture. The next view will be at the level of a high flying plane. After that, we’ll be at ground level, looking at pieces in detail. 1: Operating Systems Overview 17