Docsity

Introduction - Computer Operating Systems - Lecture Slides, Slides of Operating Systems

Partial preview of the text

Download Introduction - Computer Operating Systems - Lecture Slides and more Slides Operating Systems in PDF only on Docsity!

Lecture 1

Chapter 1: Introduction

Chapter 1: Introduction

  • What Operating Systems Do
  • Computer-System Organization
  • Computer-System Architecture
  • Operating-System Structure
  • Operating-System Operations
  • Process Management
  • Memory Management
  • Storage Management
  • Protection and Security
  • Distributed Systems
  • Special-Purpose Systems
  • Computing Environments
  • Open-Source Operating Systems

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

Computer System Structure

  • Computer system can be divided into four components - Hardware – provides basic computing resources - CPU, memory, I/O devices - Operating system - Controls and coordinates use of hardware among various applications and users - Application programs – define the ways in which the system resources are used to solve the computing problems of the users - Word processors, compilers, web browsers, database systems, video games - Users - People, machines, other computers

Operating System Definition

  • OS is a resource allocator
    • Manages all resources
    • Decides between conflicting requests for efficient and fair resource use
  • OS is a control program
    • Controls execution of programs to prevent errors and improper use of the computer

Operating System Definition (Cont)

  • No universally accepted definition
  • “Everything a vendor ships when you order an operating system” is good approximation - But varies wildly
  • “The one program running at all times on the computer” is the kernel. - Everything else is either a system program Docsity.com

Computer System Organization

  • Computer-system operation
    • One or more CPUs, device controllers connect through common bus providing access to shared memory
    • Concurrent execution of CPUs and devices competing for memory cycles

Computer-System Operation

  • I/O devices and the CPU can execute concurrently
  • Each device controller is in charge of a particular device type
  • Each device controller has a local buffer
  • CPU moves data between main memory and local buffers Docsity.com

Interrupt Handling

  • The operating system preserves the state of the CPU by storing registers and the program counter
  • Determines which type of interrupt has occurred:
  • Separate segments of code determine what action should be taken for each type of interrupt

I/O Structure

  • After I/O starts, control returns to user program only upon I/O completion - Wait instruction idles the CPU until the next interrupt - At most one I/O request is outstanding at a time, no simultaneous I/O processing
  • After I/O starts, control returns to user program without waiting for I/O completion - Device-status table contains entry for each I/O device indicating its type, address, and stateDocsity.com

Storage Structure

  • Main memory – only large storage media that the CPU can access directly
  • Secondary storage – extension of main memory that provides large nonvolatile storage capacity - Magnetic disks – rigid metal or glass platters covered with magnetic recording material - The disk controller determines the logical interaction between the device and the computer

Storage-Device Hierarchy

Computer-System Architecture

  • Most systems use a single general-purpose processor (PDAs through mainframes) - Most systems have special-purpose processors as well
  • Multiprocessors systems growing in use and importance - Also known as parallel systems, tightly-coupled systems - Advantages include 1. Increased throughput Docsity.com

How a Modern Computer Works