Chapter 1: A Tour of Computer Systems

Slides:



Advertisements
Similar presentations
C SINGH, JUNE 7-8, 2010IWW 2010, ISATANBUL, TURKEY Advanced Computers Architecture, UNIT 2 Advanced Computers Architecture UNIT 2 CACHE MEOMORY Lecture7.
Advertisements

Fabián E. Bustamante, Spring 2007 Introduction to Computer Systems Today : Welcome to EECS 213 Lecture topics and assignments Lab rationale Next time:
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 3 Operating System Organization.
Introduction to Computer Systems Topics: Staff, text, and policies Lecture topics and assignments Lab rationale CS 213 F ’06 CS-213 Yan Chen.
Memory Management CSCI 3753 Operating Systems Spring 2005 Prof. Rick Han.
Computer System Overview
Introduction to Computer Systems Topics: Staff, text, and policies Lecture topics and assignments Class overview CS 213 S ’06 CS-213 Aleksandar Kuzmanovic.
Figure 1.1 Interaction between applications and the operating system.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Introduction to Computer Systems Topics: Staff, text, and policies Lecture topics and assignments Class overview CS 213 S ’08 CS-213 Aleksandar Kuzmanovic.
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
CPU Registers PC Arith Logic Unit Bus Interface I/O Bridge System bus Memory bus Main Memory USB Controller Graphics Adapter Disk Controller I/O Bus Mouse.
Systems I Locality and Caching
Computer Architecture ECE 4801 Berk Sunar Erkay Savas.
Chapter 1 Basic Structure of Computers. Chapter Outline computer types, structure, and operation instructions and programs numbers, arithmetic operations,
Memory Hierarchy 1 Computer Organization II © CS:APP & McQuain Cache Memory and Performance Many of the following slides are taken with.
Cpr E 308 Input/Output Recall: OS must abstract out all the details of specific I/O devices Today –Block and Character Devices –Hardware Issues – Programmed.
CMSC 313, F ‘09 1 Introduction to Assembly TopicsTopics –Assembly Overview –Instructions –Hardware.
University of Amsterdam Computer Systems – a guided tour Arnoud Visser 1 Computer Systems A guided Tour.
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.
Introduction to Computer Systems Topics: Theme Four great realities of computer systems Chap 1 in “Computer Systems” book “The Class That Gives.
Intro to Computer Systems Summer 2014 COMP 2130 Introduction to Computer Systems Computing Science Thompson Rivers University.
1 Operating System Overview. 2 Today’s Objectives Explain the main purpose of operating systems and describe milestones of OS evolution Explain fundamental.
Introduction to Computer Systems Topics: Theme Five great realities of computer systems (continued) “The class that bytes”
Computer Organization & Assembly Language © by DR. M. Amer.
Lecture on Central Process Unit (CPU)
Hello world !!! ASCII representation of hello.c.
Operating Systems A Biswas, Dept. of Information Technology.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
CIT 140: Introduction to ITSlide #1 CSC 140: Introduction to IT Operating Systems.
Chapter 3 Getting Started. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. Objectives To give an overview of the structure of a contemporary.
Introduction to Operating Systems Concepts
Operating System Overview
OPERATING SYSTEM CONCEPT AND PRACTISE
Chapter 13: I/O Systems Modified by Dr. Neerja Mhaskar for CS 3SH3.
Computer Systems MTSU CSCI 3240 Spring 2016 Dr. Hyrum D. Carroll
Cache Memory and Performance
Chapter 2: Operating-System Structures
Today How’s Lab 3 going? HW 3 will be out today
CS 105 Tour of the Black Holes of Computing
CS703 - Advanced Operating Systems
Local secondary storage (local disks)
Microcomputer Architecture
CS 201 The Memory Heirarchy
IB Computer Science Topic 2.1.1
Operating System Concepts
Operating Systems and Systems Programming
Chapter 1: Introduction
Computer Organization
OS Virtualization.
Computer Science I CSC 135.
Introduction to Computer Systems
CS 105 Tour of the Black Holes of Computing
Computer Structure S.Abinash 11/29/ _02.
Computer Electronic device Accepts data - input
Introduction to Computer Systems
Chapter 1: How are computers organized?
Lecture Topics: 11/1 General Operating System Concepts Processes
Computer Electronic device Accepts data - input
Multithreaded Programming
Insight needed by AI-students Arnoud Visser
Introduction to Computer Systems
Chapter 5 Computer Organization
CS 105 “Tour of the Black Holes of Computing!”
Hardware Organization
Computer Architecture
Cache Memory and Performance
Presentation transcript:

Chapter 1: A Tour of Computer Systems Bryant & O’Hallaron

Pre- processor (cpp) Compiler (cc1) Assembler (as) Linker (ld) printf.o Pre- processor (cpp) Compiler (cc1) Assembler (as) Linker (ld) hello.c hello.i hello.s hello.o hello Source program (text) Modified source program (text) Assembly program (text) Relocatable object programs (binary) Executable object program (binary) Figure 1.3: The compilation system. compilation.ppt

CPU Register file ALU PC System bus Memory bus Main memory Bus interface I/O bridge I/O bus Expansion slots for other devices such as network adapters USB controller Graphics adapter Disk controller Figure 1.4: Hardware organization of a typical system. hardware.ppt Mouse Keyboard Display Disk hello executable stored on disk

CPU Register file ALU PC System bus Memory bus Main memory Bus interface I/O bridge "hello" I/O bus Expansion slots for other devices such as network adapters USB controller Graphics adapter Disk controller Figure 1.5: Reading the hello command from the keyboard. keyboardread.ppt Mouse Keyboard Display Disk User types "hello"

CPU Register file ALU PC System bus Memory bus Main memory Bus interface I/O bridge "hello,world\n" hello code I/O bus Expansion slots for other devices such as network adapters USB controller Graphics adapter Disk controller Figure 1.6: Loading the executable from disk into main memory. helloload.ppt Mouse Keyboard Display Disk hello executable stored on disk

CPU Register file ALU PC System bus Memory bus Main memory Bus interface I/O bridge "hello,world\n" hello code I/O bus Expansion slots for other devices such as network adapters USB controller Graphics adapter Disk controller Figure 1.7: Writing the output string from memory to the display. displaywrite.ppt Mouse Keyboard Display Disk hello executable stored on disk "hello,world\n"

CPU chip Register file ALU Cache memories System bus Memory bus Main Bus interface I/O bridge Figure 1.8: Cache memories. cachebus.ppt

Local secondary storage (local disks) Regs Smaller, faster, and costlier (per byte) storage devices CPU registers hold words retrieved from cache memory. L1: L1 cache (SRAM) L1 cache holds cache lines retrieved from the L2 cache. L2 cache (SRAM) L2: L2 cache holds cache lines retrieved from L3 cache L3: L3 cache (SRAM) L3 cache holds cache lines retrieved from memory. Larger, slower, and cheaper (per byte) storage devices L4: Main memory (DRAM) Main memory holds disk blocks retrieved from local disks. Figure 1.9: An example of a memory hierarchy. memhier.ppt L5: Local secondary storage (local disks) Local disks hold files retrieved from disks on remote network servers. L6: Remote secondary storage (distributed file systems, Web servers)

Application programs Software Operating system Processor Main memory I/O devices Hardware Figure 1.10: Layered view of a computer system. layers.ppt

Processes Virtual memory Files Processor Main memory I/O devices Figure 1.11: Abstractions provided by an operating system. abstractions-os.ppt

Process A Process B Time User code read Context switch Kernel code Disk interrupt Context switch Kernel code Return from read User code Figure 1.12: Process context switching. switch.ppt

Memory mapped region for shared libraries printf function invisible to user code Kernel virtual memory User stack (created at runtime) Memory mapped region for shared libraries printf function Run-time heap (created by malloc) Read/write data Figure 1.13: Process virtual address space. rtimage.ppt Loaded from the hello executable file Read-only code and data 0x08048000 (32) 0x00400000 (64)

Network adapter Network CPU chip Register file ALU PC System bus Memory bus Main memory Bus interface I/O bridge Expansion slots I/O bus USB controller Graphics adapter Disk controller Network adapter Figure 1.14: A network is another I/O device. nethost.ppt Mouse Keyboard Monitor Disk Network

string to telnet server 3. Server sends "hello" Local telnet client Remote server 2. Client sends "hello" string to telnet server 3. Server sends "hello" string to the shell, which runs the hello program, and passes the output to the telnet server 4. Telnet server sends "hello, world\n" string to client 5. Client prints "hello, world\n" string on display 1. User types "hello" at the keyboard Figure 1.15: Using telnet to run hello remotely over a network. telnet.ppt

All processors Multiprocessors Multi- core Hyper- threaded Uniprocessors Figure 1.16: Categorizing different processor configurations. processors.ppt

… Processor package Core 0 Core 3 Regs Regs L1 d-cache L1 i-cache L1 L2 unified cache L2 unified cache L3 unified cache (shared by all cores) Figure 1.17: Intel Core i7 organization. corei7caches.ppt Main memory

Virtual machine Processes Instruction set architecture Virtual memory Files Operating system Processor Main memory I/O devices Figure 1.18: Some abstractions provided by a computer system. abstractions-multi.ppt