Computer Organization Hardware and Software. Computing Systems Computers have two kinds of components: Hardware, consisting of its physical devices (CPU,

Slides:



Advertisements
Similar presentations
What is Hardware? Hardware is the physical parts of the computer system – the parts that you can touch and see. A motherboard, a CPU, a keyboard and a.
Advertisements

Laboratorio di Calcolo II Obbiettivo: insegnarvi a scrivere programmi in c++ 2 ore/settimana di lezione in aula 4 ore/settimana di esercitazioni personali.
The Central Processing Unit: What Goes on Inside the Computer.
Computer Hardware.
Components of Computer
Computer Programming Belaid Moa Phone: Office : ECS 115 Spring 2008.
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.
Introduction to Computer Systems
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
Introduction to Computers
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
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.
Chapter 4  Converts data into information  Control center  Set of electronic circuitry that executes stored program instructions  Two parts ◦ Control.
Computer Fundamentals. A Computer Is a System Input Processing Output Data is entered into the computer Becomes useful information The data is processed.
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
How Computers Work. A computer is a machine f or the storage and processing of information. Computers consist of hardware (what you can touch) and software.
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
BLOCK DIAGRAM OF COMPUTER
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
Laboratorio di Calcolo I Docente: prof. Berardi (Dip. Informatica) Lezione introduttiva su Computing ed esercitazioni di Unix/Linux tenute da Fabrizio.
Hardware & Software The CPU & Memory.
Introduction to Computers
Introduction to Computers
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
1 Introduction to Computers Lect 1 Won’t tell you much you don’t know. (Misleading– the course gets more conceptual as we create webpages.) Will go into.
Computer Parts. Two Basic Parts Hardware & Software.
Computer Basics 2.
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
1Copyright © Prentice Hall 2000 The Central Processing Unit Chapter 3 What Goes on Inside the Computer.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
Computer Basics Terminology - Take Notes. What is a computer? well, what is the technical definition A computer is a machine that changes information.
GCSE Information Technology Computer Systems 2 Hardware is the name that is given to any part of a computer that you can actually touch. An individual.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
Computer Architecture
Computer Component. A computer is a machine that is used to store and process data electronically Computer Definition.
Parts of the computer.
Mercedes Alonso, Luciana Pierangeli & Florencia Glasbauer.
Hardware Components Stuff you can touch and feel Input devices Keyboard, mouse, digital camera, mic Output devices Monitor (screen), printer, projector,
CSCI-100 Introduction to Computing Hardware Part I.
Parts of the Computer System
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
The Computer System CS 103: Computers and Application Software.
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Lecture on Central Process Unit (CPU)
Unit C-Hardware & Software1 GNVQ Foundation Unit C Bits & Bytes.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Memory The term memory is referred to computer’s main memory, or RAM (Random Access Memory). RAM is the location where data and programs are stored (temporarily),
 A computer is an electronic device that receives data (input), processes data, stores data, and produces a result (output).  It performs only three.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 1 Looking Inside the Computer System.
Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 
Information Technology (IT). Information Technology – technology used to create, store, exchange, and use information in its various forms (business data,
BASIC PROGRAMMING C SCP1103 (02)
An Overview of the Computer System
BASIC PROGRAMMING C SCP1103 (02)
An Introduction to The computer.
Computer Organization
The Central Processing Unit
Introduction to Computer Architecture
Introduction to Computers
An Introduction to The computer.
Looking Inside the machine (Types of hardware, CPU, Memory)
An Overview of the Computer System
Introduction to Computers
Introduction to Computer Architecture
Presentation transcript:

Computer Organization Hardware and Software

Computing Systems Computers have two kinds of components: Hardware, consisting of its physical devices (CPU, memory, bus, storage devices,...)Hardware, consisting of its physical devices (CPU, memory, bus, storage devices,...) Software, consisting of the programs it has (Operating system, applications, utilities,...)Software, consisting of the programs it has (Operating system, applications, utilities,...)

Hardware: CPU Central Processing Unit (CPU): –the “brain” of the machine –location of circuitry that performs arithmetic and logical ML statements –measurement: speed (roughly) in megahertz (millions of clock-ticks per second) –examples: Intel Pentium, AMD K6, Motorola PowerPC, Sun SPARC,

Hardware: RAM Random Access Memory (RAM) –“main” memory, which is fast, but volatile... –analogous to a person’s short-term memory. –many tiny “on-off” switches: for convenience “on” is represented by 1, “off” by 0.“on” is represented by 1, “off” by 0. –each switch is called a binary digit, or bit. 8 bits is called a byte.8 bits is called a byte bytes =1024 bytes is called a kilobyte (1K)2 10 bytes =1024 bytes is called a kilobyte (1K) 2 20 bytes is called a megabyte (1M).2 20 bytes is called a megabyte (1M).

Hardware (Disk) Secondary Memory (Disk): –Stable storage using magnetic or optical media. –Analogous to a person’s long-term memory. –Slower to access than RAM. –Examples: floppy disk (measured in kilobytes)floppy disk (measured in kilobytes) hard disk (measured in gigabytes (2 30 bytes))hard disk (measured in gigabytes (2 30 bytes)) CD-ROM (measured in megabytes),...CD-ROM (measured in megabytes),...

Hardware: the Bus The Bus: –Connects CPU to other hardware devices. –Analogous to a person’s spinal cord. –Speed measured in megahertz (like the CPU), but typically much slower than the CPU... –The bottleneck in most of today’s PCs.

Hardware: Cache While accessing RAM is faster than accessing secondary memory, it is still quite slow, relative to the rate at which the CPU runs. To circumvent this problem, most systems add a fast cache memory to the CPU, to store recently used instructions and data. (Assumption: Since such instructions/data were needed recently, they will be needed again in the near future.)

Hardware: Summary Putting the pieces together: CPU Bus Main Memory Secondary Memory cache Programs are stored (long-term) in secondary memory, and loaded into main memory to run, from which the CPU retrieves and executes their statements.

Software: OS The operating system (OS) is loaded from secondary memory into main memory when the computer is turned on, and remains in memory until the computer is turned off. RAM Disk CPU Cache Bus OS

Software: OS The OS acts as the “manager” of the system, making sure that each hardware device interacts smoothly with the others. It also provides the interface by which the user interacts with the computer, and awaits user input if no application is running. Examples: MacOS, Windows-95, Windows-NT, UNIX, Linux, Solaris,...

Software: Applications Applications are non-OS programs that perform some useful task, including word processors, spreadsheets, databases, web browsers, C++ compilers,... Example C++ compilers/environments: –CodeWarrior (MacOS, Win95, WinNT, Solaris) –GNU C++ (UNIX, Linux) –Turbo/Borland C++ (Win95, WinNT) –Visual C++ (Win95, WinNT)

Software: User Programs Programs that are neither OS programs nor applications are called user programs. User programs are what you’ll be writing in this course.

Putting it all together Programs and applications that are not running are stored on disk. RAM Disk CPU Cache Bus OS App

Putting it all together When you launch a program, the OS controls the CPU and loads the program from disk to RAM. RAM Disk CPU Cache Bus OS App OS

Putting it all together The OS then relinquishes the CPU to the program, which begins to run. RAM Disk CPU Cache Bus OS App

The Fetch-Execute Cycle As the program runs, it repeatedly fetches the next instruction (from memory/cache), executes it, and stores any results back to memory. RAM Disk CPU Cache Bus OS App That’s all a computer does: fetch-execute-store, millions of times each second!

Summary A computer has two kinds of components: –Hardware: its CPU, RAM, Disk(s),... –Software, its OS, Applications, and User Programs.