Operating Systems Béat Hirsbrunner Main Reference: William Stallings, Operating Systems: Internals and Design Principles, 6 th Edition, Prentice Hall 2009.

Slides:



Advertisements
Similar presentations
CPU Structure and Function
Advertisements

Computer Organization and Architecture
Computer System Overview
Computer Organization and Architecture
Computer Organization and Architecture
Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
Operating System and Computer Organization Background CS 502 Spring 99 WPI MetroWest/Southboro Campus.
Computer System Overview
1 Computer System Overview OS-1 Course AA
CSCI2413 Lecture 1 Operating Systems (OS) Introduction and Overview phones off (please)
1 CSIT431 Introduction to Operating Systems Welcome to CSIT431 Introduction to Operating Systems In this course we learn about the design and structure.
OS Spring’03 Introduction Operating Systems Spring 2003.
Computer System Overview
Chapter 7 Interupts DMA Channels Context Switching.
Adapted from slides ©2005 Silberschatz, Galvin, and Gagne and Stallings Lecture 2: Computer Systems Overview.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Computer System Overview Chapter 1. Basic computer structure CPU Memory memory bus I/O bus diskNet interface.
OS Spring’04 Introduction Operating Systems Spring 2004.
Using Two Queues. Using Multiple Queues Suspended Processes Processor is faster than I/O so all processes could be waiting for I/O Processor is faster.
Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 1 Copyright ©2005 Overview of Operating Systems Chapters 1 and.
Chapter 2 The OS, the Computer, and User Programs Copyright © 2008.
1 Computer System Overview Chapter 1 Review of basic hardware concepts.
CH12 CPU Structure and Function
COSC 4P13 Operating Systems : Design and Implementation.
Chapter 3 Process Description and Control Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Computer Systems Overview. Page 2 W. Stallings: Operating Systems: Internals and Design, ©2001 Operating System Exploits the hardware resources of one.
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
Chapter 3 Process Description and Control Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Computer System Overview Chapter 1. Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users.
Chapter 1 Computer System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
1 Course Information Operating System Fall Instructor Information Office: 1N-214 Tel:(718) Webpage:
Operating Systems and Networks AE4B33OSS Introduction.
Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 1 Computer System Overview.
1 Chapter 2: Computer-System Structures  Computer System Operation  I/O Structure  Storage Structure  Storage Hierarchy  Hardware Protection  General.
2 nd Year - 1 st Semester Asst. Lect. Mohammed Salim Computer Architecture I 1.
Fall 2000M.B. Ibáñez Lecture 25 I/O Systems. Fall 2000M.B. Ibáñez Categories of I/O Devices Human readable –used to communicate with the user –video display.
Operating System Isfahan University of Technology Note: most of the slides used in this course are derived from those of the textbook (see slide 4)
Lecture Topics: 10/29 Architectural support for operating systems –timers –kernel mode –system calls –protected instructions.
Operating System 1 COMPUTER SYSTEM OVERVIEW Achmad Arwan, S.Kom.
COMPUTER ORGANIZATION AND ASSEMBLY LANGUAGE Lecture 21 & 22 Processor Organization Register Organization Course Instructor: Engr. Aisha Danish.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Lecture 1: Review of Computer Organization
Computer and Operating Systems
OSes: 2. Structs 1 Operating Systems v Objective –to give a (selective) overview of computer system architectures Certificate Program in Software Development.
Processor Organization
1 Computer Architecture. 2 Basic Elements Processor Main Memory –volatile –referred to as real memory or primary memory I/O modules –secondary memory.
Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Computer Systems Overview. Lecture 1/Page 2AE4B33OSS W. Stallings: Operating Systems: Internals and Design, ©2001 Operating System Exploits the hardware.
1 Computer System Overview Chapter 1. 2 Operating System Exploits the hardware resources of one or more processors Provides a set of services to system.
Chapter 1 Computer System Overview
Computer System Overview
Architecture Background
Computer System Overview
BIC 10503: COMPUTER ARCHITECTURE
Computer System Overview
Chapter 1 Computer System Overview
Computer System Overview
Presentation transcript:

Operating Systems Béat Hirsbrunner Main Reference: William Stallings, Operating Systems: Internals and Design Principles, 6 th Edition, Prentice Hall 2009 University of Fribourg Autumn Semester September 2010 Lecture 2. Background: Computer System Overview

1 1.1 Basic Elements

2 1.2 Processor Registers User-Visible Registers  Data registers  Address register incl. index register, segment pointer, stack pointer Control and status Registers  Program counter (PC)  Instruction register (IR)  Program status word (PSW)  Condition codes (flags) Remark about the design of registers  Should provide hardware support for particular OS features Memory protection Switching between user programs Allocation of “control information” between registers and main memory

3 1.3 Instruction Execution Four categories of instructions Processor Memory Processor I/O Data Processing Control (for conditionals or loops) Special control instruction DMA (direct memory access) : main memory I/O

4 1.3 Instruction Execution

5 List of opcodes 0x1 = Load AC from Memory 0x2 = Store AC to Memory 0x5 Add to AC from Memory

6 1.4 Interrupts: most common classes

7 1.4 Interrupts: control flow

8 1.4 Interrupts: control transfer The Interrupt Handler program is generally part of the operating system

9 1.4 Interrupts: instruction cycle

Interrupts: efficiency (cf. Figs 1.5a, 1.5b) With interrupts I/O operations (often 1000 or more cycles) are done in parallel to the exection of program instructions I/O CPU cycles (in general 1 to 10)

Interrupts: efficiency (cf. Figs 1.5a, 1.5c) I/O CPU cycles (in general 1 to 10)

Interrupts: processing cf. Fig. 1.11a cf. Fig. 1.11b

Interrupts: processing (a) Step 6 of Fig. 1.10(b) Step 8 of Fig. 1.10

Interrupts: multiple interrupts

Interrupts: multiple interrupts Priority 2Priority 5 Priority 4 Time arrival of the interrupts: printer t=10, comm. t=15, disk t=20

The Memory Hierarchy

The Memory Hierarchy: performance Remark: hit rate are often around 90%, due to the “locality of references”, see also fig. 1.24

Cache Memory

Cache Memory: structure

Cache Memory: operations

I/O Communication Techniques

22 Appendix 1A: performance of 2 level memories

23 Appendix 1A: performance of 2 level memories

24 Appendix 1A: performance of 2 level memories

25 Appendix 1A: performance of 2 level memories

26 Appendix 1A: performance of 2 level memories

27 Appendix 1A: performance of 2 level memories

28 Appendix 1A: performance of 2 level memories see also fig. 1.15

29 Appendix 1B: Procedure Control

30 Appendix 1B: Procedure Control

31 Appendix 1B: Procedure Control

32 Appendix 1B: Procedure Control