1 CS503: Operating Systems Spring 2014 Dongyan Xu Department of Computer Science Purdue University.

Slides:



Advertisements
Similar presentations
MUHAMMAD AHMED HUSSAIN
Advertisements

Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Introduction to Computers Section 4A. home Decimal Number System Called base 10 because 10 symbols are available.
The Central Processing Unit: What Goes on Inside the Computer.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Parts & Functions of a Computer. 2 Functions of a Computer.
OPERATING SYSTEM LESSON 2. INTRODUCTION TO OPERATING SYSTEM Computer Hardware’s complexity Operating Systems (OS) hide this complexity from users OS manages.
1 The System Unit Lecture 2 CSCI 1405 Introduction to Computer Science Fall 2006.
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 1 Introducing Hardware.
Living in a Digital World Discovering Computers 2011.
Chapter 4  Converts data into information  Control center  Set of electronic circuitry that executes stored program instructions  Two parts ◦ Control.
Prepared by Careene McCallum-Rodney Hardware specification of a computer system.
COMPONENTS OF THE SYSTEM UNIT
COMP 1017: Digital Technologies Session 7: Motherboards.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Stuart Cunningham - Computer Platforms COMPUTER PLATFORMS Input, Output, and Storage & Introduction to Basic Computer Architecture Week 2.
CS 6560 Operating System Design Lecture 1. Overview 1.1 What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4.
The Components of the system unit Created By: N.AlJaffan Modified By:S.Abudawood Chapter 4.
B.A. (Mahayana Studies) Introduction to Computer Science November March The Motherboard A look at the brains of the computer, the.
E0001 Computers in Engineering1 The System Unit & Memory.
Computer Hardware Mr. Richard Orr Technology Teacher Bednarcik Jr. High School.
Random access memory.
1 A+ Guide to Managing and Maintaining Your PC, Fifth Edition Hardware Needs Software to Work Hardware  Physical components of a computer  Visible part.
CS Fall 2011 CS 423 – Operating Systems Design Lecture 2 – Concepts Review Klara Nahrstedt Fall 2011.
 Design model for a computer  Named after John von Neuman  Instructions that tell the computer what to do are stored in memory  Stored program Memory.
A+ Guide to Software Managing, Maintaining and Troubleshooting THIRD EDITION Chapter 2 How an OS Works with Hardware and Other Software.
A+ Guide to Managing and Maintaining your PC, 6e Chapter 1 Introducing Hardware v0.95.
CPU Computer Hardware Organization (How does the computer look from inside?) Register file ALU PC System bus Memory bus Main memory Bus interface I/O bridge.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Created By: N.AlJaffan Modified By:S.Abudawood & Tr.Asma Aleisa Chapter 4.
Copyright Prentice-Hall, Inc Chapter 2.
The Computer Systems. Computer System CPU Is the brain of the PC. All program instructions are run through the CPU Control Unit This decodes and executes.
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets.
Computing and the Web Computer Hardware Components.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output CS 342 – Operating Systems Ibrahim Korpeoglu Bilkent University.
I T Essentials I Chapter 1 JEOPARDY HardwareConnector/CablesMemoryAcronymsPotpourri
The Components of the System Unit
1.4 Hardware Review. CPU  Fetch-decode-execute cycle 1. Fetch 2. Bump PC 3. Decode 4. Determine operand addr (if necessary) 5. Fetch operand from memory.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Motherboard A motherboard allows all the parts of your computer to receive power and communicate with one another.
PC Internal Components Lesson 4.  Intel is perhaps the most recognizable microprocessor manufacturer. List some others.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 5A Transforming Data Into Information.
Advanced Operating Systems - Spring 2009 Lecture 18 – March 25, 2009 Dan C. Marinescu Office: HEC 439 B. Office hours:
Lecture on Central Process Unit (CPU)
Chapter 2.
5 th October 2004Hardware – KS41 Hardware Objectives: Computer systems  What do they do?  Identify the hardware that makes up a computer system (PC)
Computers Are Your Future Tenth Edition Inside the System Unit 1.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
Lecture # 10 Processors Microcomputer Processors.
Operating Systems: History, Hardware & Concepts Ch 1.4 & 1.5 Thursday, January 18, 2007.
The Central Processing Unit: What Goes on Inside the Computer
Computer Hardware – System Unit
Discovering Computers 2011: Living in a Digital World Chapter 4
Computer Organization
McGraw-Hill Technology Education
Today’s agenda Hardware architecture and runtime system
Hi, Everyone! Chunyi Peng
Hi, Everyone! Chunyi Peng
Today’s agenda Hardware architecture and runtime system
Overview 1. Inside a PC 2. The Motherboard 3. RAM the 'brains' 4. ROM
McGraw-Hill Technology Education
McGraw-Hill Technology Education
Presentation transcript:

1 CS503: Operating Systems Spring 2014 Dongyan Xu Department of Computer Science Purdue University

2 Acknowledgement The following people for sharing their slides: –Prof. Peter Chen (U. Michigan) –Prof. Sam King (UIUC) –Prof. Klara Nahrstedt (UIUC) –Prof. Gustavo Rodriguez-Rivera (Purdue)

3 A Typical Computer from a Hardware Point of View CPU ChipsetMemory I/O bus CPU... Network

4 North Bridge chip South Bridge chip ModemSound card Hard disksCD-ROM Video card Memory CPU AGP port PCI bus PCI slots IDE controller Serial, parallel and USB ports

5 Typical Computer System Operating System Software Programs and data Memory CPU OS Apps Data Network

6 Processors Each CPU has a specific set of instructions All CPUs contain –General registers inside to hold key variables and temporary results –Special registers visible to the programmer Program counter contains the memory address of the next instruction to be fetched Stack pointer points to the top of the current stack in memory Control registers (e.g., CR0-CR4 in x86) PSW (Program Status Word) contains the condition code bits which are set by comparison instructions, the CPU priority, the mode (user or kernel) and various other control bits.

7 How Processors Work Execute instructions –CPU cycles Fetch (from mem)  decode  execute Program counter (PC) –When is PC changed? Pipeline: fetch n+2 while decode n+1 while execute n –Two modes of CPU (why?) User mode (a subset of instructions) Privileged mode (all instruction) –Trap (special instruction)

8 Memory Access Memory read: –Assert address on address lines –Wait till data appear on data line –Much slower than CPU! How many mem access for one instruction? –Fetch instruction –Fetch operand (0, 1 or 2) –Write results (0 or 1) How to speed up instruction execution?

9 CPU Cache Cache hit: –no need to access memory Cache miss: –data obtained from mem, possibly update cache

10 Memory-Storage Hierarchy < - 4MB -1GB -TB

11 Memory Registers internal to CPU (as fast as CPU) –Storage 32x32 bits on a 32-bit CPU, 64x64 on 64 bit CPU (less than 1KB in both cases) Cache memory controlled by hardware –Cache hit and miss RAM (Random Access Memory) Disk (magnetic disk), CD-ROM, DVD,… –Cylinder, track, … Non-volatile Memory –ROM (Read Only Memory) Programmed at the factory and can’t be changed –EEPROM (Electrically Erasable ROM) –Flash RAM Can be erased and re-written Volatile Memory –CMOS holds current time and date

12 Memory Management How to protect programs from each other? How to handle relocation ? Base register Limit register Check and Mapping of Addresses –Virtual Address - Physical Address –Memory Management Unit (MMU – located on CPU chip or close to it Performance effects on memory system –Cache –Context switch

13 I/O Devices Controller –Example: Disk Controller –Controllers are complex converting OS request into device parameters –Controllers often contain small embedded computers Device –Fairly simple interfaces and standardized –IDE (Integrated Drive Electronics) – standard disk type on Pentiums and other computers

14 I/O Devices Device Driver –Needed since each type of controller may be different. –Software that talks to a controller, giving it comments and accepting responses –Each controller manufacturer supplies a driver for each OS it supports (e.g., drivers for Windows XP, Longhorn, UNIX)

15 Methods for I/O How device driver talks to controller –Busy wait –Interrupt –DMA

16 Bus Pentium systems have eight buses –Cache, local, memory, PCI, SCSI, USB, IDE, ISA PCI (Peripheral Component Interconnect) bus is successor to IBM PC ISA bus –Intel bus, 528MB/sec ISA (Industry Standard Architecture) bus –16.67 MB/sec –Specialized buses: SCSI (Small Computer System Interface) –160MB/sec – for disks, scanners (popular on Macintosh, UNIX) USB (Universal Serial Bus) –1.5 MB/sec IEEE 1394 – FireWire (Apple) bus –50MB/sec, connectivity for cameras to computer IDE (Integrated Drive Electronics) bus –Disk, CD-ROM

17 Structure of an Intel Pentium System