CSIS-110 Introduction to Computer Science

Slides:



Advertisements
Similar presentations
Components of a computer system
Advertisements

COMP375 Computer Architecture and Organization Senior Review.
Chapter 5 Computing Components. The (META) BIG IDEA Cool, idea but maybe too big DATA – Must be stored somewhere in a storage device PROCESSING – Data.
The Von Neumann Architecture Odds and Ends
Storage. The Memory Hierarchy fastest, but small under a microsecond, random access, perhaps 2Gb Typically magnetic disks, magneto­ optical (erasable),
CS4432: Database Systems II Data Storage - Lecture 2 (Sections 13.1 – 13.3) Elke A. Rundensteiner.
04/18/2007CSCI 315 Operating Systems Design1 Mass Storage Structure Notice: The slides for this lecture have been largely based on those accompanying the.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Category1 Computers Category2 CPU.
Chapter 5 Computing Components Nell Dale John Lewis.
1 Storage Hierarchy Cache Main Memory Virtual Memory File System Tertiary Storage Programs DBMS Capacity & Cost Secondary Storage.
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
CS4432: Database Systems II Lecture 2 Timothy Sutherland.
CPSC-608 Database Systems Fall 2009 Instructor: Jianer Chen Office: HRBB 309B Phone: Notes #5.
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
04/19/2004CSCI 315 Operating Systems Design1 Mass Storage Structure Notice: The slides for this lecture have been largely based on those accompanying the.
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
3 1 3 C H A P T E R Hardware: Input, Processing, and Output Devices.
Invitation to Computer Science 5th Edition
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
1 Secondary Storage Management Submitted by: Sathya Anandan(ID:123)
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
1 Chapter 17 Disk Storage, Basic File Structures, and Hashing Chapter 18 Index Structures for Files.
Chapter 5 Computing Components Nell Dale John Lewis.
Chapter 5 Computing Components. 5-2 Chapter Goals List the components and their function in a von Neumann machine Describe the fetch-decode-execute cycle.
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.1 This chapter focuses on key hardware layer components.
Lecture 40: Review Session #2 Reminders –Final exam, Thursday 3:10pm Sloan 150 –Course evaluation (Blue Course Evaluation) Access through.
Memory and Storage. Computer Memory Processor registers – Temporary storage locations within the CPU – Examples Instruction register – holds the instruction.
CS4432: Database Systems II Data Storage 1. Storage in DBMSs DBMSs manage large amounts of data How does a DBMS store and manage large amounts of data?
Lesson 3 0x Hardware Components
Database Systems Disk Management Concepts. WHY DO DISKS NEED MANAGING? logical information  physical representation bigger databases, larger records,
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
CS 101 – Sept. 28 Main vs. secondary memory Examples of secondary storage –Disk (direct access) Various types Disk geometry –Flash memory (random access)
Chapter 5 Computer Systems Organization. Levels of Abstraction – Figure 5.1e The Concept of Abstraction.
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
1 Important Announcements  Midterm 3 is on Wednesday, April 20 from 7pm to 8:30pm —Practice Midterm 1 released tonight —Please me ASAP in case you.
Memory and Storage Aldon Tom. What is Memory? Memory is a solid-state digital device that stores data values. Memory holds running programs and the data.
Processor Memory Processor-memory bus I/O Device Bus Adapter I/O Device I/O Device Bus Adapter I/O Device I/O Device Expansion bus I/O Bus.
Disk Average Seek Time. Multi-platter Disk platter Disk read/write arm read/write head.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
1 Components of the Virtual Memory System  Arrows indicate what happens on a lw virtual address data physical address TLB page table memory cache disk.
Data Storage and Querying in Various Storage Devices.
Computer System Structures Storage
TYPES OF MEMORY.
Starter: Stored Program Concept (von Neumann Architecture)
Chapter 2: Computer-System Structures
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
What is a computer? Simply put, a computer is a sophisticated electronic calculating machine that: Accepts input information, Processes the information.
Computer Science 210 Computer Organization
Introduction to Computer Architecture
Oracle SQL*Loader
Introduction to Computing
Basic Computer Organization
IB Computer Science Topic 2.1.1
Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin
Operating Systems (CS 340 D)
COMS 161 Introduction to Computing
Introduction to Computing
Module IV Memory Organization.
Introduction to Computer Architecture
Chapter 5: Computer Systems Organization
The Von Neumann Architecture Odds and Ends
Parameters of Disks The most important disk parameter is the time required to locate an arbitrary disk block, given its block address, and then to transfer.
Introduction to Computer Architecture
Introduction COE 301 Computer Organization
Chapter 11: Mass-Storage Systems
Networks & I/O Devices.
Introduction COE 301 Computer Organization Prof. Aiman El-Maleh
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Presentation transcript:

CSIS-110 Introduction to Computer Science Dr. Meg Fryling “Dr. Meg” Fall 2012 @SienaDrMeg #csis110

Lecture Fourteen Agenda Questions? Exam questions? Assignments CSI Ch 6: Hardware Homework 3 – Part I (1-3) Note: Exam 1 Solutions on Piazza If you don’t know why you got something wrong, please find out!

Assignments Readings: See course scheduled on syllabus Homework 3 The textbook readings are going to help you with homeworks AND labs See pdf on Piazza Homework 3 Due at START of class Monday 10/29 Program Template Coming to class late does NOT extend your due date/time Lab 5 Due at START of lab 6 Coming to lab late does NOT extend your due date/time

For Wednesday’s Class Install Racket on your laptop http://racket-lang.org/download/ Scheme programming environment Bring your laptop to class We will do some Scheme and Python programming in class

Memory – Volatile Registers Cache RAM Small storage in ALU Contain one word (how big is that?) and info that will be needed immediately Access is fast! Cache Small and fast Usually built into processor chip Processors can access without FSB Contains copies of frequently used data RAM Main memory Access via FSB if not found in Cache Can be accessed directly (Random) Word is usually 2 bytes (16 bits) Cache memory is random access memory (RAM) that a computer microprocessor can access more quickly than it can access regular RAM. As the microprocessor processes data, it looks first in the cache memory and if it finds the data there (from a previous reading of data), it does not have to do the more time-consuming reading of data from larger memory.

Figure 6.1 The von Neumann architecture Bus - A set of wires that connect all major sections Figure 6.2 Data flow through a von Neumann architecture

The Fetch-Execute Cycle Figure 6.3 The Fetch-Execute Cycle

Secondary Storage Devices Why is it necessary to have secondary storage devices? Can you name some of these devices?

Magnetic Disk Structure

Time to read/write data to disk Address of data: Surface, track, sector Seek time: Time it takes for the read/write head to get positioned over the right track Latency: Time it takes for the sector to spin to the read/write head Transfer Time: Time for one sector to move under the read/write head Access Time: Time it takes for a block to start being read Seek Time + Latency + Transfer Time

Disk Performance: Example Rotation speed: 7200 rev. / min Arm movement speed: 0.02 ms to move to the next track Tracks per surface: 1000 Number of surfaces: 1 Sectors per track: 50 Characters (bytes) per sector: 512

Disk Example (cont’d) First, convert the Rotation speed to Rotation time, in milliseconds (ms): Step 1: convert rev/minute to rev/second: 7200 rev / 1 minute = 120 rev / second Step 2: convert revolutions to seconds: 120 rev / 1 sec = 1 revolution in 1/120 of a second Step 3: convert to decimal: 1/120 = .00833 seconds / revolution Step 4: convert to milliseconds: .00833 seconds/rev = 8.33 ms/ rev 7200 rev / 1 minute = 120 rev / second 120 rev / 1 sec = 1 revolution in 1/120 of a second 1/120 = .00833 seconds / revolution .00833 seconds/rev = 8.33 ms/ rev

Disk Example (cont’d) Voila! Each rotation takes 8.33 ms! Now we can use this to calculate … seek time, latency, transfer time, and total access time 7200 rev / 1 minute = 120 rev / second 120 rev / 1 sec = 1 revolution in 1/120 of a second 1/120 = .00833 seconds / revolution .00833 seconds/rev = 8.33 ms/ rev

Time needed to move from the first to the last track Best-case Worst-case Average-case Seek Time Time needed to move from the first to the last track Time needed to move over 1/3 of the tracks Latency Time needed for one full revolution of the disk Time needed for half of the revolution of the disk Transfer Time Time needed for a block to pass under the head Total Access Time Sum of the above *We assume that in the average case, the read/right head moves about 1/3 of the total number of tracks.

Disk Example 1 (Continued) Rotation speed: 7200 rev/ min Remember we already calculated Rotation Time: 8.33 ms! Arm movement speed: 0.02 ms to move to the next track Tracks per surface: 1000 Number of surfaces: 1 Sectors per track: 50 Characters (bytes) per sector: 512 How many characters can be stored on a single disk? Seek time Latency Transfer time Total Best Worst Average