Today’s agenda Hardware architecture and runtime system

Slides:



Advertisements
Similar presentations
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Advertisements

Computer Organization and Architecture
OPERATING SYSTEM LESSON 2. INTRODUCTION TO OPERATING SYSTEM Computer Hardware’s complexity Operating Systems (OS) hide this complexity from users OS manages.
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
IT Systems Memory EN230-1 Justin Champion C208 –
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
Chapter 4  Converts data into information  Control center  Set of electronic circuitry that executes stored program instructions  Two parts ◦ Control.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Intro to CS Chapt 2 Data Manipualtion 1 Data Manipulation How is data manipulated inside a computer? –How is data input? –How is it stored? –How is it.
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.
CS Fall 2011 CS 423 – Operating Systems Design Lecture 2 – Concepts Review Klara Nahrstedt Fall 2011.
1 CS503: Operating Systems Spring 2014 Dongyan Xu Department of Computer Science Purdue University.
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,
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
Operating Systems and Networks AE4B33OSS Introduction.
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
© 2004, D. J. Foreman 1 Computer Organization. © 2004, D. J. Foreman 2 Basic Architecture Review  Von Neumann ■ Distinct single-ALU & single-Control.
© 2004, D. J. Foreman 1 Computer Organization. © 2004, D. J. Foreman 2 Basic Architecture Review  Von Neumann ■ Distinct single-ALU & single-Control.
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 Chapter 5A Transforming Data Into Information.
Lecture on Central Process Unit (CPU)
Operating Systems: History, Hardware & Concepts Ch 1.4 & 1.5 Thursday, January 18, 2007.
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.
Introduction to Operating Systems Concepts
The Central Processing Unit: What Goes on Inside the Computer
Chapter 13: I/O Systems Modified by Dr. Neerja Mhaskar for CS 3SH3.
Computer System Overview
Chapter 1 Computer System Overview
Chapter 2.
Computer Hardware – System Unit
UNIT 9 Computer architecture
Jonathan Walpole Computer Science Portland State University
Operating Systems (CS 340 D)
Discovering Computers 2011: Living in a Digital World Chapter 4
Chapter 7.2 Computer Architecture
Transforming Data Into Information
Introduction to Computer Architecture
introduction to computer
CS-301 Introduction to Computing Lecture 17
Basic Computer Organization
Microcomputer Architecture
IB Computer Science Topic 2.1.1
الجزء السابع الجزء السادس الجزء الخامس الجزء الرابع الجزء الثالث الجزء
Computer Organization
הכרת המחשב האישי PC - Personal Computer
McGraw-Hill Technology Education
Computer System Overview
Introduction to Computing
ECEG-3202 Computer Architecture and Organization
Introduction to Computer Architecture
Today’s agenda Hardware architecture and runtime system
Five Key Computer Components
Computer Organization
Components of a CPU AS Computing - F451.
Created by Vivi Sahfitri
Overview 1. Inside a PC 2. The Motherboard 3. RAM the 'brains' 4. ROM
A451: Computer Systems and Programming
Chapter 1 Computer System Overview
Chapter 5 Computer Organization
McGraw-Hill Technology Education
McGraw-Hill Technology Education
Chapter 11 Processor Structure and function
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment. Phone:
Chapter 13: I/O Systems.
Presentation transcript:

Today’s agenda Hardware architecture and runtime system Additional slides Module-3 Lab1 will be released soon System calls: create(),resume(),kill(), wait(), signal(), sleep(), sleepms(), … Read Chapter 1-2 Producer-consumer sample in chapter 2 CS354-Fall2018

CS250 in 15 minutes CS354-Fall2018

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. CS354-Fall2018

How Processors Work Execute instructions CPU cycles Two modes of CPU 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 User mode (a subset of instructions) Privileged mode (all instruction) Trap (special instruction) CS354-Fall2018

Memory Access Memory read: How many mem access for one instruction? 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? CS354-Fall2018

Memory-Storage Hierarchy < - 4MB -1GB -TB -TB CS354-Fall2018

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

CPU Cache Cache hit: Cache miss: no need to access memory data obtained from mem, possibly update cache CS354-Fall2018

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

I/O Devices Controller Device 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

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)

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

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

Structure of an Intel Pentium System