Computer System Overview

Slides:



Advertisements
Similar presentations
Computer System Overview
Advertisements

CSCI 4717/5717 Computer Architecture
Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
Computer System Overview
1 Computer System Overview OS-1 Course AA
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 3 System Buses.
TECH CH03 System Buses Computer Components Computer Function
Computer System Overview Chapter 1. Basic computer structure CPU Memory memory bus I/O bus diskNet interface.
1 Computer System Overview Chapter 1 Review of basic hardware concepts.
CS-334: Computer Architecture
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.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Top Level View of Computer Function and Interconnection.
System bus.
Operating Systems and Networks AE4B33OSS Introduction.
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.
2 nd Year - 1 st Semester Asst. Lect. Mohammed Salim Computer Architecture I 1.
COMPUTER ORGANIZATIONS CSNB123. COMPUTER ORGANIZATIONS CSNB123 Expected Course Outcome #Course OutcomeCoverage 1Explain the concepts that underlie modern.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
EEE440 Computer Architecture
COMPUTER SYSTEM OVERVIEW
Fall 2000M.B. Ibáñez Lecture 25 I/O Systems. Fall 2000M.B. Ibáñez Categories of I/O Devices Human readable –used to communicate with the user –video display.
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)
Operating System 1 COMPUTER SYSTEM OVERVIEW Achmad Arwan, S.Kom.
By Fernan Naderzad.  Today we’ll go over: Von Neumann Architecture, Hardware and Software Approaches, Computer Functions, Interrupts, and Buses.
Chapter 6: Computer Components Dr Mohamed Menacer Taibah University
Dr Mohamed Menacer College of Computer Science and Engineering, Taibah University CE-321: Computer.
Lecture 1: Review of Computer Organization
Group 1 chapter 3 Alex Francisco Mario Palomino Mohammed Ur-Rehman Maria Lopez.
1 Computer Architecture. 2 Basic Elements Processor Main Memory –volatile –referred to as real memory or primary memory I/O modules –secondary memory.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
Computer Architecture. Top level of Computer A top level of computer consists of CPU, memory, an I/O components, with one or more modules of each type.
Computer Systems Overview. Lecture 1/Page 2AE4B33OSS W. Stallings: Operating Systems: Internals and Design, ©2001 Operating System Exploits the hardware.
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 1 Computer System Overview
Interrupts In 8085 and 8086.
CHAPTER 4 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Interrupts.
Chapter 3 Top Level View of Computer Function and Interconnection
Computer System Overview
ECEG-3202 Computer Architecture and Organization
MARIE: An Introduction to a Simple Computer
BIC 10503: COMPUTER ARCHITECTURE
Interrupt handling Explain how interrupts are used to obtain processor time and how processing of interrupted jobs may later be resumed, (typical.
Computer System Overview
Chapter 1 Computer System Overview
Computer System Overview
A Top-Level View Of Computer Function And Interconnection
William Stallings Computer Organization and Architecture 7th Edition
Presentation transcript:

Computer System Overview Book: Operating Systems , Internals and Design Principles, 7th Edition by William Stallings

What is Operating System? An operating system exploits the hardware resources of one or more processors to provide the set of services to system users It also manages secondary memory and I/O devices on behalf of its users

Basic Elements of a Computer These components are interconnected to achieve the main functionality of the computer, which is to execute programs. Processor also known as Central Processing Unit. Controls the operation of computer and data processing function Main Memory: Store data and programs Volatile (when system shut down, the contents of memory are lost) refer to as primary or real memory.

Contd… I/O modules System Bus move data between computer and external environment. External environment may consists of variety of devices including secondary memory devices (e.g. disks). System Bus provide for communication among processor, main memory, and I/O modules.

Instruction Execution A program to be executed consists of set of instructions stored in memory. Instruction Processing consists of two steps: Processor Read/fetch instruction from main memory. (called fetch stage) Executes each instruction (may involve several operations depend on the nature of the instruction).(called execute stage) Program execution halts only if Processor is turned off Some sort of unrecoverable error occur Program instruction that halts the processor is encountered.

Instruction Cycle

Contd… At the beginning of each instruction cycle Processor fetch instruction from main memory. (Program Counter holds the address of the address of the next instruction to be fetched, after fetching the instruction, processor increments the PC). The fetched instruction is loaded into instruction register (IR). The instruction contains the bits that specify the action the processor is to take. Processor interprets the instruction and perform the required action.

Actions In general, the actions fall into four categories: Processor-memory data transfer between processor and memory. Processor-I/O data transfer to or from peripheral device by transferring between processor and I/O module. Data Processing processor may perform arithmetic or logic operations on data. Control alter the sequence of execution

Example of Program Execution

Interrupt Virtually all computers provide a mechanism by which other modules may interrupt the normal sequencing of the processor. Provided primarily as a way to improve processor utilization. Suppose that the processor is transferring data to a printer using the instruction cycle scheme. After each write operation, the processor may pause and remain idle until the printer catches up. The length of this pause may be on the order of many thousands or even millions of instruction cycle, which is wasteful use of processor. Allows the processor to execute other instructions while an I/O operation is in progress

Classes of Interrupt

Interrupt Handler A program that determines nature of the interrupt and performs whatever actions are needed. According to last example, the handler determine which I/O module generated the interrupt and may branch to a program that will write more data out to that I/O module. Control is transferred to this program Generally part of the operating system. When interrupt handler routine is completed, the processor can resume the execution of the user program at the point of interruption.

Interrupt Cycle Processor checks for interrupts If no interrupts fetch the next instruction for the current program If an interrupt is pending, suspend execution of the current program, and execute the interrupt handler

Instruction Cycle with Interrupt Stage

Interrupt Processing An interrupt triggers a number of events, both in the processor hardware and software.

Multiple Interrupt One or more interrupt can occur while an interrupt is being processed. For example, a program can receive data from communication line and printer results at the same time.

Multiple Interrupts: Sequential Order Disable interrupts so processor can complete task Interrupts remain pending or we can say ignore interrupt until the processor enables interrupts If an interrupt occurs when user program is executing, then interrupt are disabled immediately. After interrupt handler routine completes, the processor checks for additional interrupts Simple Interrupt handle in strict sequential order. Drawback: it does not take into account relative priority

Multiple Interrupts: Priorities Higher priority interrupts cause lower-priority interrupts to wait Causes a lower-priority interrupt handler to be interrupted Example when input arrives from communication line, it needs to be absorbed quickly to make room for more input

Multiple Interrupts

Example Consider a system with three I/O devices: a printer, disk and communication line: with increasing priorities of 2,4 and 5 respectively.