Operating Systems Lecture No. 2. Basic Elements  At a top level, a computer consists of a processor, memory and I/ O Components.  These components are.

Slides:



Advertisements
Similar presentations
Instruction Set Design
Advertisements

CPU Review and Programming Models CT101 – Computing Systems.
Computer Organization and Architecture
Processor System Architecture
Computer System Overview
Computer Organization and Architecture
Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Computer Systems. Computer System Components Computer Networks.
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
Computer System Overview
1 Computer System Overview OS-1 Course AA
Stored Program Concept: The Hardware View
1 CSIT431 Introduction to Operating Systems Welcome to CSIT431 Introduction to Operating Systems In this course we learn about the design and structure.
Computer System Overview
Chapter 7 Interupts DMA Channels Context Switching.
Chapter 1 and 2 Computer System and Operating System Overview
State Machines Timing Computer Bus Computer Performance Instruction Set Architectures RISC / CISC Machines.
11/11/05ELEC CISC (Complex Instruction Set Computer) Veeraraghavan Ramamurthy ELEC 6200 Computer Architecture and Design Fall 2005.
Computer System Overview Chapter 1. Basic computer structure CPU Memory memory bus I/O bus diskNet interface.
Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.
1 Computer System Overview Chapter 1 Review of basic hardware concepts.
Basic Operational Concepts of a Computer
Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Computer Systems Overview. Page 2 W. Stallings: Operating Systems: Internals and Design, ©2001 Operating System Exploits the hardware resources of one.
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.
Computer System Overview Chapter 1. Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users.
Chapter 1 Computer System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Operating Systems and Networks AE4B33OSS Introduction.
Operating Systems Lecture 02: Computer System Overview Anda Iamnitchi
Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 1 Computer System Overview.
Fall 2012 Chapter 2: x86 Processor Architecture. Irvine, Kip R. Assembly Language for x86 Processors 6/e, Chapter Overview General Concepts IA-32.
COMPUTER SYSTEM OVERVIEW. Operating Systems: Internals and Design Principles “No artifact designed by man is so convenient for this kind of functional.
Operating systems, lecture 4 Team Viewer Tom Mikael Larsen, Thursdays in D A look at assignment 1 Brief rehearsal from lecture 3 More about.
COMPUTER SYSTEM OVERVIEW
COMPUTER ORGANIZATION AND ASSEMBLY LANGUAGE Lecture 19 & 20 Instruction Formats PDP-8,PDP-10,PDP-11 & VAX Course Instructor: Engr. Aisha Danish.
Operating System Isfahan University of Technology Note: most of the slides used in this course are derived from those of the textbook (see slide 4)
Computer Architecture 2 nd year (computer and Information Sc.)
Operating System 1 COMPUTER SYSTEM OVERVIEW Achmad Arwan, S.Kom.
Stored Program A stored-program digital computer is one that keeps its programmed instructions, as well as its data, in read-write,
Lecture#15. Cache Function The data that is stored within a cache might be values that have been computed earlier or duplicates of original values that.
1 Chapter Seven. 2 Users want large and fast memories! SRAM access times are ns at cost of $100 to $250 per Mbyte. DRAM access times are ns.
Instruction Sets: Addressing modes and Formats Group #4  Eloy Reyes  Rafael Arevalo  Julio Hernandez  Humood Aljassar Computer Design EEL 4709c Prof:
COMPUTER ORGANIZATION AND ASSEMBLY LANGUAGE Lecture 21 & 22 Processor Organization Register Organization Course Instructor: Engr. Aisha Danish.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Lecture 1: Review of Computer Organization
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
1 Chapter Seven. 2 Users want large and fast memories! SRAM access times are ns at cost of $100 to $250 per Mbyte. DRAM access times are ns.
Processor Organization
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
1 Computer Architecture. 2 Basic Elements Processor Main Memory –volatile –referred to as real memory or primary memory I/O modules –secondary memory.
Copyright 2006 by Timothy J. McGuire, Ph.D. 1 MIPS Programming Model CS 333 Sam Houston State University Dr. Tim McGuire.
Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Computer Architecture
Computer Systems Overview. Lecture 1/Page 2AE4B33OSS W. Stallings: Operating Systems: Internals and Design, ©2001 Operating System Exploits the hardware.
Operating systems, Lecture 1 Microsoft Windows –Windows 7 –Windows 8 –Windows RT UNIX –Linux –IOS –Android.
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.
Chapter Overview General Concepts IA-32 Processor Architecture
Computer Organization and Architecture Lecture 1 : Introduction
Chapter 1 Computer System Overview
A Closer Look at Instruction Set Architectures
Processor Organization and Architecture
Chapter 1 Computer System Overview
Computer System Overview
Presentation transcript:

Operating Systems Lecture No. 2

Basic Elements  At a top level, a computer consists of a processor, memory and I/ O Components.  These components are interconnected in some fashion to achieve the main function of a computer.  The main function is to “Execute the Programs”  The four main structural elements are: 1. Processor 2. Main Memory 3. I/ O Modules 4. System Bus

Discussion

Processor Registers  A processor includes set of registers that provide a type of memory that is faster and smaller than main memory.  There are two functions of the registers in the processor.  1. User Visible Register Enables the machine or Assembly Language programmer to minimize main memory references by optimizing register use. For high level languages an optimizing compiler is used.

Processor Registers  2. Control and Status Register Used by the processor to control the operation of the processor. Note that there is not a clean separation of the registers. For example on some machines the program counter is not visible but on many it is. For purposes of the following discussions, however it is convenient to use these categories.

User Visible Registers  A user visible register may be referenced by means of the machine language that the processor executes and is generally available to all programs, including application programs as well as system programs.  The types of registers that are typically available are;  Data Registers  Address Registers (Index Addresses, Segment Pointer (Chapter 7) and Stack Pointer  Control Register (Program Counter, Instruction Register)

Instruction Execution  A program to be executed by a processor consists of a set of instructions stored in memory.  In simplest form, instruction processing consists of two types, Fetch and Execute.  Program execution consists of repeating the process of instruction fetch and instruction execution.  The processing required for a single instruction is called an instruction cycle.

Instruction Fetch and Execute  At the beginning of each instruction cycle, the processor fetches an instruction from the memory.  The PC holds the address of next instruction to be fetched.  The processor always increment the PC after each instruction is fetched so that it may be able to fetch the next instruction in sequence.  So for example consider a simplified computer in which each instruction occupies one 16 bit word of memory.

Instruction Fetch and Execute (Continued)

The Memory Hierarchy  The design constraints on a computer memory can be summed up by three questions;  How much?  How fast?  How expensive?  The question of how much is some what open ended.  If the capacity is there, applications will likely be developed to use it.  The question of how fast is lot easier to answer, to achieve the speed memory must be able to cope up with the processor.

The Memory Hierarchy (Continued)  The final question how expensive depends on the technology to be used.  As might be expected, there is a tradeoff among the three characteristics of memory namely: cost, capacity and access time.  Faster access time, greater cost per bit  Greater capacity, smaller cost per bit  Greater capacity, slower access speed

The Memory Hierarchy (Continued)  The dilemma facing the designer is clear.  The designer would love to have greater capacity, faster access less cost.  However in real time the designer needs to use expensive, relatively lower capacity memories with faster access time to improve the performance.  The way out to this dilemma is not on just a single memory component.

The Memory Hierarchy (Continued)  Decreasing cost per bit  Increasing capacity  Increasing access time  Decreasing frequency of access to the memory by the processor

Cache Memory  Although cache memory is invisible to the operating system, it interacts with other memory management hardware. You will come to know this in depth in chapter 8 when the virtual memory schemes will be discussed  What can be the motivation behind cache memory?  On all instruction cycles, the processor accesses memory at least once, to fetch the instructions and often one or more additional times, to fetch the operands or store the result.

Cache Memory (Continued)  The rate at which the processor can execute instructions is clearly limited by the memory cycle time.  Memory cycle time is the time that is used to read or write one word from or to the memory.  This has certainly a cause of problem because of the mismatch of processor and main memory speeds.  Over the time, processors speed has consistently increased than memory access speed.

Cache Memory (Continued)