SlideShare uma empresa Scribd logo
1 de 16
Introduction to Operating Systems



                   Introduction and
                          Overview

Questions answered in this lecture:
  What is an operating system?
  How have operating systems evolved?
  Why study operating systems?
What is an Operating System?
   Not easy to define precisely…
                         Users
                                           compilers
                      Applications         databases
                                           word processors

                  Operating System
                                           CPU
                       Hardware            memory
                                           I/O devices
 OS:
  Everything in system that isn’t an application or hardware
 OS:
  Software that converts hardware into a useful form for
  applications
What is the role of the OS?
    Role #1: Provide standard Library (I.e., abstract
     resources)
    What is a resource?
       Anything valuable (e.g., CPU, memory, disk)
    Advantages of standard library
       Allow applications to reuse common facilities
       Make different devices look the same
       Provide higher-level abstractions
    Challenges
       What are the correct abstractions?
       How much of hardware should be exposed?
What is the role of the OS?
   Role #2: Resource coordinator (I.e., manager)

   Advantages of resource coordinator
     Virtualize resources so multiple users or applications
      can share
     Protect applications from one another
     Provide efficient and fair access to resources
   Challenges
     What are the correct mechanisms?
     What are the correct policies?
What Functionality belongs in
OS?
   No single right answer
     Desired functionality depends on outside factors

     OS must adapt to both user expectations and
      technology changes
       Change abstractions provided to users

       Change algorithms to implement those abstractions

       Change low-level implementation to deal with
        hardware

   Current operating systems driven by evolution
History of the OS
   Two distinct phases of history
     Phase 1: Computers are expensive

       Goal: Use computer’s time efficiently

       Maximize throughput (I.e., jobs per second)

       Maximize utilization (I.e., percentage busy)

     Phase 2: Computers are inexpensive

       Goal: Use people’s time efficiently

       Minimize response time
First commercial systems
     1950s Hardware
       Enormous, expensive, and slow
       Input/Output: Punch cards and line printers
     Goal of OS
       Get the hardware working
       Single operator/programmer/user runs and debugs
         interactively
     OS Functionality
       Standard library only (no sharing or coordination of
         resources)
       Monitor that is always resident; transfer control to programs
     Advantages
       Worked and allowed interactive debugging
     Problems
       Inefficient use of hardware (throughput and utilization)
Batch Processing
   Goal of OS: Better throughput and utilization
   Batch: Group of jobs submitted together
       Operator collects jobs; orders efficiently; runs one at a
        time
   Advantages
       Amortize setup costs over many jobs
       Operator more skilled at loading tapes
       Keep machine busy while programmer thinks
       Improves throughput and utilization
   Problems
       User must wait until batch is done for results
       Machine idle when job is reading from cards and writing to
        printers
Spooling
    Hardware
       Mechanical I/O devices much slower than CPU
       Read 17 cards/sec vs. execute 1000s instructions/sec
    Goal of OS
       Improve performance by overlapping I/O with CPU execution
    Spooling: Simultaneous Peripheral Operations On-Line
    1.  Read card punches to disk
    2.  Compute (while reading and writing to disk)
    3.  Write output from disk to printer
    OS Functionality
       Buffering and interrupt handling
    Problem
       Machine idle when job waits for I/O to/from disk
Multiprogrammed Batch
Systems
   Observation: Spooling provides pool of ready jobs
   Goal of OS
     Improve performance by always running a job

     Keep multiple jobs resident in memory

     When job waits for disk I/O, OS switches to another job

   OS Functionality
     Job scheduling policies

     Memory management and protection

   Advantage: Improves throughput and utilization
   Disadvantage: Machine not interactive
Inexpensive Peripherals
   1960s Hardware
     Expensive mainframes, but inexpensive keyboards and monitors
     Enables text editors and interactive debuggers
   Goal of OS
     Improve user’s response time
   OS Functionality
     Time-sharing: switch between jobs to give appearance of
      dedicated machine
     More complex job scheduling
     Concurrency control and synchronization
   Advantage
     Users easily submit jobs and get immediate feedback
Inexpensive Personal
Computers
   1980s Hardware
     Entire machine is inexpensive
     One dedicated machine per user
   Goal of OS
     Give user control over machine
   OS Functionality
     Remove time-sharing of jobs, protection, and virtual memory
   Advantages
     Simplicity
     Works with little main memory
     Machine is all your own (performance is predictable)
   Disadvantages
     No time-sharing or protection between jobs
Inexpensive, Powerful
Computers
   1990s+ Hardware
     PCs with increasing computation and storage

     Users connected to the web

   Goal of OS
     Allow single user to run several applications simultaneously

     Provide security from malicious attacks

     Efficiently support web servers



   OS Functionality
     Add back time-sharing, protection, and virtual memory
Current Systems
   Conclusion: OS changes due to both hardware and users
   Current trends
     Multiprocessors
     Networked systems
     Virtual machines
   OS code base is large
     Millions of lines of code
     1000 person-years of work
   Code is complex and poorly understood
     System outlives any of its builders
     System will always contain bugs
     Behavior is hard to predict, tuning is done by guessing
OS Components
   Kernel: Core components of the OS

   Process scheduler
    Determines when and for long each process executes
   Memory manager
    Determines when and how memory is allocated to processes
    Decides what to do when main memory is full
   File system
    Organizes named collections of data in persistent storage
   Networking
    Enables processes to communicate with one another

Why study Operating
Systems?
   Build, modify, or administer an operating system

   Understand system performance
     Behavior of OS impacts entire machine

     Challenge to understand large, complex system

     Tune workload performance

     Apply knowledge across many areas

       Computer architecture, programming languages, data
        structures and algorithms, and performance modeling

Mais conteúdo relacionado

Mais procurados

Operating system introduction to operating system
Operating system   introduction to operating systemOperating system   introduction to operating system
Operating system introduction to operating systemjaydeesa17
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating SystemsDamian T. Gordon
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts pptRajendraPrasad Alladi
 
Lecture 1 introduction to Operating System
Lecture 1 introduction to Operating SystemLecture 1 introduction to Operating System
Lecture 1 introduction to Operating SystemDr. Amitava Nag
 
introduction to operating system
introduction to operating systemintroduction to operating system
introduction to operating systemHAMZA AHMED
 
chapter 1 introduction to operating system
chapter 1 introduction to operating systemchapter 1 introduction to operating system
chapter 1 introduction to operating systemAisyah Rafiuddin
 
ITFT_Introduction to Operating system
ITFT_Introduction to Operating systemITFT_Introduction to Operating system
ITFT_Introduction to Operating systemSneh Prabha
 
Introduction to Operating System and its Types
Introduction to Operating System and its TypesIntroduction to Operating System and its Types
Introduction to Operating System and its Typessundas Shabbir
 
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
 
Interactive os
Interactive osInteractive os
Interactive osmimie_ghaz
 
Unit 1 introduction to Operating System
Unit 1 introduction to Operating SystemUnit 1 introduction to Operating System
Unit 1 introduction to Operating Systemzahid7578
 

Mais procurados (20)

Operating system introduction to operating system
Operating system   introduction to operating systemOperating system   introduction to operating system
Operating system introduction to operating system
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts ppt
 
Operating systems
Operating systemsOperating systems
Operating systems
 
Lecture 1 introduction to Operating System
Lecture 1 introduction to Operating SystemLecture 1 introduction to Operating System
Lecture 1 introduction to Operating System
 
introduction to operating system
introduction to operating systemintroduction to operating system
introduction to operating system
 
Operating systems
Operating systemsOperating systems
Operating systems
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
chapter 1 introduction to operating system
chapter 1 introduction to operating systemchapter 1 introduction to operating system
chapter 1 introduction to operating system
 
ITFT_Introduction to Operating system
ITFT_Introduction to Operating systemITFT_Introduction to Operating system
ITFT_Introduction to Operating system
 
Unit 1 introduction to operating system
Unit 1 introduction to operating systemUnit 1 introduction to operating system
Unit 1 introduction to operating system
 
Introduction To Operating System
Introduction To Operating SystemIntroduction To Operating System
Introduction To Operating System
 
Chapter02 new
Chapter02 newChapter02 new
Chapter02 new
 
Operating system
Operating systemOperating system
Operating system
 
Chapter 2 operating systems
Chapter 2 operating systemsChapter 2 operating systems
Chapter 2 operating systems
 
Presentation on operating system
 Presentation on operating system Presentation on operating system
Presentation on operating system
 
Introduction to Operating System and its Types
Introduction to Operating System and its TypesIntroduction to Operating System and its Types
Introduction to Operating System and its Types
 
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
 
Interactive os
Interactive osInteractive os
Interactive os
 
Unit 1 introduction to Operating System
Unit 1 introduction to Operating SystemUnit 1 introduction to Operating System
Unit 1 introduction to Operating System
 

Semelhante a Introduction to Operating Systems

Principles of operating system
Principles of operating systemPrinciples of operating system
Principles of operating systemAnil Dharmapuri
 
CSE 370 - Introduction to Operating Systems
CSE 370 - Introduction to Operating SystemsCSE 370 - Introduction to Operating Systems
CSE 370 - Introduction to Operating SystemsDev Khare
 
Operating Systems Genesis, Development and Functions m.pptx
Operating Systems Genesis, Development and Functions  m.pptxOperating Systems Genesis, Development and Functions  m.pptx
Operating Systems Genesis, Development and Functions m.pptxDrIrfanulHaqAkhoon
 
Nt introduction(os)
Nt introduction(os)Nt introduction(os)
Nt introduction(os)NehaTadam
 
FinalBCU-Unit1-DigitalFluency (1).pdf
FinalBCU-Unit1-DigitalFluency (1).pdfFinalBCU-Unit1-DigitalFluency (1).pdf
FinalBCU-Unit1-DigitalFluency (1).pdfRaghunathan52
 
OS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptxOS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptxPRABAVATHIH
 
week-1-200310134908.pptx
week-1-200310134908.pptxweek-1-200310134908.pptx
week-1-200310134908.pptxssuser5c874e
 
OS - BACKGROUND HANDLING
OS - BACKGROUND HANDLING OS - BACKGROUND HANDLING
OS - BACKGROUND HANDLING ImranBhatti58
 
Operating system notes ch1
Operating system notes ch1Operating system notes ch1
Operating system notes ch1Emmanuel Damka
 
Operating system basics, Types of operating systems, Tasks, Process and Thre...
Operating system basics, Types of operating  systems, Tasks, Process and Thre...Operating system basics, Types of operating  systems, Tasks, Process and Thre...
Operating system basics, Types of operating systems, Tasks, Process and Thre...SattiBabu16
 

Semelhante a Introduction to Operating Systems (20)

Principles of operating system
Principles of operating systemPrinciples of operating system
Principles of operating system
 
Unit 1 q&a
Unit  1 q&aUnit  1 q&a
Unit 1 q&a
 
CSE 370 - Introduction to Operating Systems
CSE 370 - Introduction to Operating SystemsCSE 370 - Introduction to Operating Systems
CSE 370 - Introduction to Operating Systems
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating system
 
Operating Systems Genesis, Development and Functions m.pptx
Operating Systems Genesis, Development and Functions  m.pptxOperating Systems Genesis, Development and Functions  m.pptx
Operating Systems Genesis, Development and Functions m.pptx
 
Nt introduction(os)
Nt introduction(os)Nt introduction(os)
Nt introduction(os)
 
FinalBCU-Unit1-DigitalFluency (1).pdf
FinalBCU-Unit1-DigitalFluency (1).pdfFinalBCU-Unit1-DigitalFluency (1).pdf
FinalBCU-Unit1-DigitalFluency (1).pdf
 
OS Intro.ppt
OS Intro.pptOS Intro.ppt
OS Intro.ppt
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
OS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptxOS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptx
 
week-1-200310134908.pptx
week-1-200310134908.pptxweek-1-200310134908.pptx
week-1-200310134908.pptx
 
OS - BACKGROUND HANDLING
OS - BACKGROUND HANDLING OS - BACKGROUND HANDLING
OS - BACKGROUND HANDLING
 
Introduction to OS 1.ppt
Introduction to OS 1.pptIntroduction to OS 1.ppt
Introduction to OS 1.ppt
 
01.osdoc
01.osdoc01.osdoc
01.osdoc
 
Operating system notes ch1
Operating system notes ch1Operating system notes ch1
Operating system notes ch1
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
 
Ch1
Ch1Ch1
Ch1
 
Operating system basics, Types of operating systems, Tasks, Process and Thre...
Operating system basics, Types of operating  systems, Tasks, Process and Thre...Operating system basics, Types of operating  systems, Tasks, Process and Thre...
Operating system basics, Types of operating systems, Tasks, Process and Thre...
 
Operating System
Operating SystemOperating System
Operating System
 

Mais de Imran Waris

Nonverbal communication
Nonverbal communicationNonverbal communication
Nonverbal communicationImran Waris
 
Digital and Logic Design Chapter 1 binary_systems
Digital and Logic Design Chapter 1 binary_systemsDigital and Logic Design Chapter 1 binary_systems
Digital and Logic Design Chapter 1 binary_systemsImran Waris
 
digital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gatesdigital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gatesImran Waris
 
Micro soft word,excel notes
Micro soft word,excel notesMicro soft word,excel notes
Micro soft word,excel notesImran Waris
 
Computer concepts
Computer conceptsComputer concepts
Computer conceptsImran Waris
 

Mais de Imran Waris (12)

Lec12
Lec12Lec12
Lec12
 
Lec8
Lec8Lec8
Lec8
 
Lec7
Lec7Lec7
Lec7
 
Lec6
Lec6Lec6
Lec6
 
Lec5
Lec5Lec5
Lec5
 
Lec4
Lec4Lec4
Lec4
 
Communication
CommunicationCommunication
Communication
 
Nonverbal communication
Nonverbal communicationNonverbal communication
Nonverbal communication
 
Digital and Logic Design Chapter 1 binary_systems
Digital and Logic Design Chapter 1 binary_systemsDigital and Logic Design Chapter 1 binary_systems
Digital and Logic Design Chapter 1 binary_systems
 
digital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gatesdigital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gates
 
Micro soft word,excel notes
Micro soft word,excel notesMicro soft word,excel notes
Micro soft word,excel notes
 
Computer concepts
Computer conceptsComputer concepts
Computer concepts
 

Último

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 

Último (20)

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Introduction to Operating Systems

  • 1. Introduction to Operating Systems Introduction and Overview Questions answered in this lecture: What is an operating system? How have operating systems evolved? Why study operating systems?
  • 2. What is an Operating System?  Not easy to define precisely… Users compilers Applications databases word processors Operating System CPU Hardware memory I/O devices  OS: Everything in system that isn’t an application or hardware  OS: Software that converts hardware into a useful form for applications
  • 3. What is the role of the OS?  Role #1: Provide standard Library (I.e., abstract resources)  What is a resource?  Anything valuable (e.g., CPU, memory, disk)  Advantages of standard library  Allow applications to reuse common facilities  Make different devices look the same  Provide higher-level abstractions  Challenges  What are the correct abstractions?  How much of hardware should be exposed?
  • 4. What is the role of the OS?  Role #2: Resource coordinator (I.e., manager)  Advantages of resource coordinator  Virtualize resources so multiple users or applications can share  Protect applications from one another  Provide efficient and fair access to resources  Challenges  What are the correct mechanisms?  What are the correct policies?
  • 5. What Functionality belongs in OS?  No single right answer  Desired functionality depends on outside factors  OS must adapt to both user expectations and technology changes  Change abstractions provided to users  Change algorithms to implement those abstractions  Change low-level implementation to deal with hardware  Current operating systems driven by evolution
  • 6. History of the OS  Two distinct phases of history  Phase 1: Computers are expensive  Goal: Use computer’s time efficiently  Maximize throughput (I.e., jobs per second)  Maximize utilization (I.e., percentage busy)  Phase 2: Computers are inexpensive  Goal: Use people’s time efficiently  Minimize response time
  • 7. First commercial systems  1950s Hardware  Enormous, expensive, and slow  Input/Output: Punch cards and line printers  Goal of OS  Get the hardware working  Single operator/programmer/user runs and debugs interactively  OS Functionality  Standard library only (no sharing or coordination of resources)  Monitor that is always resident; transfer control to programs  Advantages  Worked and allowed interactive debugging  Problems  Inefficient use of hardware (throughput and utilization)
  • 8. Batch Processing  Goal of OS: Better throughput and utilization  Batch: Group of jobs submitted together  Operator collects jobs; orders efficiently; runs one at a time  Advantages  Amortize setup costs over many jobs  Operator more skilled at loading tapes  Keep machine busy while programmer thinks  Improves throughput and utilization  Problems  User must wait until batch is done for results  Machine idle when job is reading from cards and writing to printers
  • 9. Spooling  Hardware  Mechanical I/O devices much slower than CPU  Read 17 cards/sec vs. execute 1000s instructions/sec  Goal of OS  Improve performance by overlapping I/O with CPU execution  Spooling: Simultaneous Peripheral Operations On-Line 1. Read card punches to disk 2. Compute (while reading and writing to disk) 3. Write output from disk to printer  OS Functionality  Buffering and interrupt handling  Problem  Machine idle when job waits for I/O to/from disk
  • 10. Multiprogrammed Batch Systems  Observation: Spooling provides pool of ready jobs  Goal of OS  Improve performance by always running a job  Keep multiple jobs resident in memory  When job waits for disk I/O, OS switches to another job  OS Functionality  Job scheduling policies  Memory management and protection  Advantage: Improves throughput and utilization  Disadvantage: Machine not interactive
  • 11. Inexpensive Peripherals  1960s Hardware  Expensive mainframes, but inexpensive keyboards and monitors  Enables text editors and interactive debuggers  Goal of OS  Improve user’s response time  OS Functionality  Time-sharing: switch between jobs to give appearance of dedicated machine  More complex job scheduling  Concurrency control and synchronization  Advantage  Users easily submit jobs and get immediate feedback
  • 12. Inexpensive Personal Computers  1980s Hardware  Entire machine is inexpensive  One dedicated machine per user  Goal of OS  Give user control over machine  OS Functionality  Remove time-sharing of jobs, protection, and virtual memory  Advantages  Simplicity  Works with little main memory  Machine is all your own (performance is predictable)  Disadvantages  No time-sharing or protection between jobs
  • 13. Inexpensive, Powerful Computers  1990s+ Hardware  PCs with increasing computation and storage  Users connected to the web  Goal of OS  Allow single user to run several applications simultaneously  Provide security from malicious attacks  Efficiently support web servers  OS Functionality  Add back time-sharing, protection, and virtual memory
  • 14. Current Systems  Conclusion: OS changes due to both hardware and users  Current trends  Multiprocessors  Networked systems  Virtual machines  OS code base is large  Millions of lines of code  1000 person-years of work  Code is complex and poorly understood  System outlives any of its builders  System will always contain bugs  Behavior is hard to predict, tuning is done by guessing
  • 15. OS Components  Kernel: Core components of the OS  Process scheduler Determines when and for long each process executes  Memory manager Determines when and how memory is allocated to processes Decides what to do when main memory is full  File system Organizes named collections of data in persistent storage  Networking Enables processes to communicate with one another 
  • 16. Why study Operating Systems?  Build, modify, or administer an operating system  Understand system performance  Behavior of OS impacts entire machine  Challenge to understand large, complex system  Tune workload performance  Apply knowledge across many areas  Computer architecture, programming languages, data structures and algorithms, and performance modeling