COMPUTER SYSTEM OVERVIEW

Slides:



Advertisements
Similar presentations
Computer System Organization Computer-system operation – One or more CPUs, device controllers connect through common bus providing access to shared memory.
Advertisements

Chapter 1 Computer System Overview
Computer System Overview
Informationsteknologi Thursday, September 6, 2007Computer Systems/Operating Systems - Class 21 Today’s class Finish computer system overview Review of.
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.
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
Chapter 1 and 2 Computer System and Operating System Overview
Adapted from slides ©2005 Silberschatz, Galvin, and Gagne and Stallings Lecture 2: Computer Systems Overview.
Chapter 1 and 2 Computer System and Operating System Overview
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.
Memory Hierarchy M ADHAN - ADHAN KR. C-O.IN.
The Structure of the CPU
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 1 Computer System Overview
THE COMPUTER SYSTEM. Lecture Objectives Computer functions – Instruction fetch & execute – Interrupt Handling – I/O functions Interconnections Computer.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
CACHE MEMORY Cache memory, also called CPU memory, is random access memory (RAM) that a computer microprocessor can access more quickly than it can access.
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.
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.
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.
2 nd Year - 1 st Semester Asst. Lect. Mohammed Salim Computer Architecture I 1.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
ECEG-3202 Computer Architecture and Organization Chapter 3 Top Level View of Computer Function and Interconnection.
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.
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
Lecture 1: Review of Computer Organization
Overview von Neumann Architecture Computer component Computer function
1 Computer Memory System Overview. Objectives  Discuss the overview of the memory elements of a computer  Describe the characteristics of the computer.
1 Computer Architecture. 2 Basic Elements Processor Main Memory –volatile –referred to as real memory or primary memory I/O modules –secondary memory.
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 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.
Computer System Overview
Chapter 1 Computer System Overview
CHAPTER 4 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Interrupts.
Computer System Overview
Chapter 1 Computer System Overview
Chapter 1 Computer System Overview
11 An operating system (OS) exploits the hardware resources of one or more processors to provide a set of services to system users. The OS also manages.
BIC 10503: COMPUTER ARCHITECTURE
Chapter 1 Computer System Overview
Computer Organization & Architecture 3416
Presentation transcript:

COMPUTER SYSTEM OVERVIEW Chapter 1 COMPUTER SYSTEM OVERVIEW

Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users Manages secondary memory and I/O devices

Basic Elements of Computer System At a top level, a computer consists of processor, memory, and I/O components, with one or more modules of each type. These components are interconnected in some fashion to achieve the main function of the computer, which is to execute programs. Thus, there are four main structural elements: Processor: Controls the operation of the computer and performs its data processing functions. When there is only one processor, it is often referred to as the central processing unit (CPU). Main memory: Stores data and programs. This memory is typically volatile; that is, when the computer is shut down, the contents of the memory are lost. Main memory is also referred to as real memory or primary memory.

Basic Elements of Computer System (Cont’d) I/O modules: Move data between the computer and its external environment. The external environment consists of a variety of devices, including secondary memory devices (e.g., disks), communications equipment, and terminals. System bus: Provides for communication among processors, main memory, and I/O modules. All of these formerly-mentioned elements are fixed on an electronic board which is called “motherboard”.

Basic Elements of Computer System (Cont’d)

Computer Motherboard…… X

Processor [Central Processing Unit (CPU)] One of the processor’s functions is to exchange data with memory. For this purpose, it typically makes use of two internal registers Memory address register (MAR): Specifies the address for the next read or write. Memory buffer register (MBR): Contains data to be written into memory or which receives data read from memory. Similarly, there are two I/O-related registers: I/O address register (I/OAR): specifies a particular I/O device. I/O buffer register (I/OBR): is used for the exchange of data between an I/O module and the processor.

Variety of CPU Vendors

Memory A memory module consists of a set of locations, defined by sequentially numbered addresses. Each location contains a bit pattern that can be interpreted as either an instruction or data. An I/O module transfers data from external devices to processor and memory, and vice versa. It contains internal buffers for temporarily holding data until they can be sent on.

Instruction Execution (Fetch & Execute)…………………X A program to be executed by a processor consists of a set of instructions stored in memory. In its simplest form, instruction processing consists of two steps: Fetch: The processor reads ( fetches ) instructions from memory one at a time. Typically, the program counter (PC) holds the address of the next instruction to be fetched. Program counter is incremented after each fetch. Execute: executes each instruction. Program execution consists of repeating the process of instruction fetch and instruction execution.

Instruction Execution (Cont’d)….X The processing required for a single instruction is called an instruction cycle. Using a simplified two-step description, the instruction cycle is depicted in Figure 1.2. Program execution halts only if the processor is turned off, some sort of unrecoverable error occurs, or a program instruction that halts the processor is encountered.

Instruction Execution (Cont’d) In general, these actions fall into four categories: Processor-memory: Data may be transferred from processor to memory or from memory to processor. Processor-I/O: Data may be transferred to or from a peripheral device by transferring between the processor and an I/O module. Data processing: The processor may perform some arithmetic or logic operation on data. Control: An instruction may specify that the sequence of execution be altered.

Example of Program Execution…X Figure 1.4 illustrates a partial program execution, showing the relevant portions of memory and processor registers. The program fragment shown adds the contents of the memory word at address 940 to the contents of the memory word at address 941 and stores the result in the latter location.

Example of Program Execution…..X Three instructions, which can be described as three fetch and three execute stages, are required: The PC contains 300, the address of the first instruction. This instruction (the value 1940 in hexadecimal) is loaded into the IR and the PC is incremented. Note that this process involves the use of a memory address register (MAR) and a memory buffer register (MBR). For simplicity, these intermediate registers are not shown.

Example of Program Execution ….X The first 4 bits (first hexadecimal digit) in the IR indicate that the AC is to be loaded from memory. The remaining 12 bits (three hexadecimal digits) specify the address, which is 940. The next instruction (5941) is fetched from location 301 and the PC is incremented. The old contents of the AC and the contents of location 941 are added and the result is stored in the AC. The next instruction (2941) is fetched from location 302 and the PC is incremented. The contents of the AC are stored in location 941.

Interrupts Virtually all computers provide a mechanism by which other modules (I/O, memory) may interrupt the normal sequencing of the processor. Interrupt: means to interrupt the normal sequencing of the processor. Interrupts are provided primarily as a way to improve processor utilization. For example, Most I/O devices are much slower than the processor. Suppose that the processor is transferring data to a printer using the instruction cycle scheme of Figure 1.2. After each write operation, the processor must 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 cycles. Clearly, this is a very wasteful use of the processor.

Classes of Interrupts

Program Control and Interrupts

Instruction Cycle with Interrupts…x Instruction cycle with interrupts will become as follows: 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 routine.

Memory Hierarchy……….X As might be expected, there is a trade-off among the three key characteristics of memory: namely, capacity, access time, and cost. A variety of technologies are used to implement memory systems, and across this spectrum of technologies, the following relationships hold: Faster access time, greater cost per bit Greater capacity, smaller cost per bit Greater capacity, slower access speed

Memory Hierarchy

Going Down the Memory Hierarchy As one goes down the hierarchy in figure 1.14, the following occur: Decreasing cost per bit Increasing capacity Increasing access time Decreasing frequency of access of the memory by the processor Locality of reference

Secondary Memory Permanent Storage Media like: Nonvolatile Hard disk Removable disk, Tape Optical Storage. Nonvolatile Auxiliary memory Used to store program and data files A hard disk is also used to provide an extension to main memory known as virtual memory to support

Disk Cache Disk Cache is a portion of main memory used as a buffer to temporarily to hold data that are to be read out to disk. Disk Cache improves performance in two ways: Disk writes are clustered. Instead of many small transfers of data, we have a few large transfers of data. This improves disk performance and minimizes processor involvement. Some data written out may be referenced again. The data are retrieved rapidly from the software cache instead of slowly from disk.

Cache Memory Why Cache Memory? Invisible to operating system. Because, there is a mismatch between processor and main memory speeds as main memory is slower than CPU. Invisible to operating system. Increase the speed of memory. Exploit the principle of locality.

Cache Memory…….X

Cache Memory………X Contains a copy of a portion of main memory. Processor first checks cache. If not found in cache, the block of memory containing the needed information is moved to the cache and delivered to the processor.

Cache Read Operation……..X

Cache Design…….X Cache size Small caches have a significant impact on performance. Block size The unit of data exchanged between cache and main memory. Larger block size more hits until probability of using newly fetched data becomes less than the probability of reusing data that have to be moved out of cache.

Cache Design……………X Mapping function Replacement algorithm Determines which cache location the block will occupy. Replacement algorithm We would like to replace the block that is least likely to be needed again in the near future. Least-Recently-Used (LRU) algorithm To replace the block that has been in the cache longest with no reference to it.

Multicore Computers…….X A multicore computer, combines two or more processors (called cores) on a single piece of silicon (called a die). Typically, each core consists of all of the components of an independent processor.

Multicore Computers (Cont’d)….X

I/O Techniques………..X Three techniques are possible for I/O operations: Programmed I/O Interrupt-driven I/O Direct Memory Access (DMA)

(1) Programmed I/O…….X I/O module performs the action, not the processor. Sets appropriate bits in the I/O status register. No interrupts occur. Processor checks status until operation is complete.

(2) Interrupt-Driven I/O……X Processor is interrupted when I/O module ready to exchange data. Processor saves context of the executing program and begins executing interrupt-handler. No needless waiting. Consumes a lot of processor time because every word read or written passes through the processor.

(3) Direct Memory Access (DMA)….X I/O exchanges occur directly with memory. Processor grants I/O module authority to read from or write to memory. Relieves the processor responsibility for the exchange.

(3) Direct Memory Access (DMA)…X Transfers a block of data directly to or from memory An interrupt is sent when the transfer is complete Processor continues with other work