Chapter 1: Introduction

Slides:



Advertisements
Similar presentations
Computer-System Structures Er.Harsimran Singh
Advertisements

Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
CMPT 300: Operating Systems I Dr. Mohamed Hefeeda
OS2-1 Chapter 2 Computer System Structures. OS2-2 Outlines Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
1 School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Dr. Mohamed Hefeeda.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Abhinav Kamra Computer Science, Columbia University 2.1 Operating System Concepts Silberschatz, Galvin and Gagne  2002 Chapter 2: Computer-System Structures.
Modified from Silberschatz, Galvin and Gagne ©2009 CS 446/646 Principles of Operating Systems Lecture 1 Chapter 1: Introduction.
Computer-System Structures
1.1 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Instructor:
1/21/2010CSCI 315 Operating Systems Design1 Computer System Structures Notice: The slides for this lecture have been largely based on those accompanying.
Chapter 2: Computer-System Structures
General System Architecture and I/O.  I/O devices and the CPU can execute concurrently.  Each device controller is in charge of a particular device.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 1: Introduction.
Objectives To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 1: Introduction.
Chapter 1. Introduction What is an Operating System? Mainframe Systems
2.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 2: Computer-System Structures Computer System Operation I/O Structure.
CHAPTER 2: COMPUTER-SYSTEM STRUCTURES Computer system operation Computer system operation I/O structure I/O structure Storage structure Storage structure.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 2: Computer-System Structures Computer System Operation I/O Structure.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Chapter 2: Computer-System Structures
Thanks to Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2 Computer-System Structures n Computer System Operation n I/O Structure.
1 CSE Department MAITSandeep Tayal Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
2: Computer-System Structures
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 1: Introduction What Operating Systems Do (previous.
1 Chapter 2: Computer-System Structures  Computer System Operation  I/O Structure  Storage Structure  Storage Hierarchy  Hardware Protection  General.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 1: Introduction What Operating Systems Do Computer-System.
Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection Network Structure.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 1: Introduction.
Chapter 1: Introduction. What Operating Systems Do Computer-System Organization Operating-System Structure Operating-System functionalities Process Management.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 2 Computer-System Structures Slide 1 Chapter 2 Computer-System Structures.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 4 Computer Systems Review.
Silberschatz, Galvin and Gagne  Applied Operating System Concepts Chapter 2: Computer-System Structures Computer System Architecture and Operation.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
1 Lecture 1: Computer System Structures We go over the aspects of computer architecture relevant to OS design  overview  input and output (I/O) organization.
Review of Computer System Organization. Computer Startup For a computer to start running when it is first powered up, it needs to execute an initial program.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Chapter 2: Computer-System Structures(Hardware) or Architecture or Organization Computer System Operation I/O Structure Storage Structure Storage Hierarchy.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 1: Introduction.
1.1 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 1: Introduction What Operating Systems Do √ Computer-System Organization.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Objectives To provide a grand tour of the major operating.
CSCE451/851 Introduction to Operating Systems
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Introduction to Operating Systems Concepts
OPERATING SYSTEM CONCEPT AND PRACTISE
Chapter 2: Computer-System Structures(Hardware)
Applied Operating System Concepts
Chapter 2: Computer-System Structures
Chapter 1: Introduction Lecture 1 Part 1
Chapter 1: Introduction
Operating Systems (CS 340 D)
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Chapter 1: Introduction
Computer-System Architecture
Module 2: Computer-System Structures
Chapter 1: Introduction Lecture 1 Part 1
Module 2: Computer-System Structures
Chapter 1: Introduction
CS 143A Principles of Operating Systems
Chapter 2: Computer-System Structures
Chapter 2: Computer-System Structures
Module 2: Computer-System Structures
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment. Phone:
Module 2: Computer-System Structures
Chapter 1: Introduction
Operating Systems: The course
Presentation transcript:

Chapter 1: Introduction

Chapter 1: Introduction What Operating Systems Do Computer-System Organization Operating-System Structure Operating-System functionalities Process Management Memory Management Storage Management Protection and Security Computing Environments

Objectives To understand the computer system organization To understand the major operating system components

What is an Operating System? (user view)

What is an Operating System? (user view) #&*…%$#@ OS For ease of use

What is an Operating System? (system view) output CPU data MEM

What is an Operating System? (system view) output CPU data MEM prog1 prog2 prog3 prog4 Control program Resource allocator

Computer-system operation (The OS initialization phase) ROM 1 2 RAM 3

Computer-System Organization (after booting) applications Sys. call signal OS cmd Hardware polling interrupt

OS operations I/O devices and the CPU execute concurrently AP1 applications I/O devices and the CPU execute concurrently AP1 AP2 AP2 Sys. call signal OS 1 cmd 4 3 interrupt buffer 2 controller

Common Functions of Interrupts (interrupt vector table, IVT) mem Interrupt transfers control to the interrupt service routine Disable all incoming interrupts (???) Save the CPU status of the interrupted program IDTR 1 2’ ISR 2” IDTR: interrupt descriptor table register

Common Functions of Interrupts applications Software interrupt Sys. call signal OS kernel cmd Hardware polling interrupt Basically, an operating system is interrupt driven. Dual-Mode operation: kernel mode + user mode

Interrupt Handling Save the CPU status (including the CPU status register, program counter and some other registers) Interrupt handling depends on the type of interrupt polling vectored interrupt system vectored interrupt system + polling Execute the interrupt service routine.

Direct Memory Access Structure (DMA) bus

Direct Memory Access Structure (DMA) cache bus

Two I/O Methods After I/O starts, control returns to user program only upon I/O completion. Synchronous I/O Cons:??? Pros:??? After I/O starts, control returns to user program without waiting for I/O completion. Asynchronous I/O

Two I/O Methods Synchronous Asynchronous

Storage Hierarchy Storage systems organized in hierarchy. Speed Cost Volatility Caching – a temporary storage area where frequently accessed data can be stored for rapid access. Register: main memory Cache memory: main memory Main memory: disk

Storage-Device Hierarchy compiler OS only large storage media that the CPU can access directly. extension of main memory that provides large nonvolatile storage capacity. 刪掉

Performance of Various Levels of Storage (OS)

Cache (Coherency & consistency) L1 $ L1 $ L2 $ L2 $ bus

Operating System Structure Multiprogramming needed for efficiency Server When CPU has to wait (for I/O for example), OS switches to another program Timesharing (multitasking) creates interactive computing Personal computer + programs exhaust their time slice

Multiprogramming CPU I/O ready CPU ready CPU I/O time

Timesharing CPU ready CPU I/O CPU ready CPU ready CPU I/O time

Operating-System Operations applications AP1 AP2 AP2 Sys. call int_ret OS 1 cmd 4 3 interrupt buffer 2 controller

Dual-mode operation AP1 applications AP2 AP2 User mode Sys. call Int_ret Kernel mode OS 1 cmd 4 3 interrupt buffer 2 controller

Dual-mode operation applications trap AP2 User mode Kernel mode OS Syscall_handler ISR CPU Mode=kernel_mode Push PC Save machine status Jump_to ISR Exception := Trap := Software interrupt

Dual-mode operation AP1 applications AP2 AP2 User mode Sys. call Int_ret Kernel mode OS Syscall_handler 1 cmd 4 3 interrupt buffer 2 controller

Dual-mode operation applications trap AP2 AP2 User mode Kernel mode OS Syscall_handler ISR CPU restore machine status Mode=user_mode Pop PC

Timer time CPU ready CPU I/O CPU ready CPU ready CPU I/O timer interrupt time timer

OS OS Structure Protec-tion Process manage-ment Memory manage-ment setuid… SELinux OS Protec-tion Process manage-ment Memory manage-ment Storage manage-ment security passwd… fork… open & close… malloc..

Computing Environments (symmetric multiprocessor, SMP) CPU 0 CPU 1 CPU 2 bus

Computing Environments (chip multiprocessor, CMP) CPU Core 0 Core 1 L1 $ L1 $ L2 $ bus

Computing Environments (simultaneously multithreading, SMT) CPU Core Logical processor 0 Logical processor 1 L1 $ L2 $ bus

Computing Environments (CMP+SMT) CPU Core 0 Core 1 LP0 LP1 LP0 LP1 L1 $ L1 $ L2 $ bus

Computing Environments (symmetric multiprocessor, SMP) (UMA) CPU 0 CMP+SMT CPU 1 CMP+SMT CPU 2 CMP+SMT bus

Computing Environments (symmetric multiprocessor, SMP) (NUMA) CPU 0 CMP+SMT CPU 1 CMP+SMT CPU 2 CMP+SMT bus

Embedded systems & web computing internet WEB apps

參考資料 Silberschatz, Galvin and Gagne, “Operating system Principles,” 8th ed Wikipedia, http://www.wikipedia.org/