Subject

: T0316 Operating System

Computer System Overview
Week 1 - 1
Objectives
At the end of this lecture, students are able to:
• LO1: Describe the basic elements of a computer system
and t...
Sub Topics
•
•
•
•
•

Basic Elements
Instruction Cycle
Interrupt
Memory
I/O Types

Bina Nusantara University

4
Operating System
•Manage resources
•Provides a set of services to system users (User Interface)
•Manages secondary memory ...
Basic Elements
• Processor
• Main Memory
– referred to as real memory or primary memory
– volatile
• I/O modules
– seconda...
Computer Architecture (1)

7

Bina Nusantara University

Operating System-Internal and Design Concept - Stallings
Computer Architecture(2)
The program counter (PC) keeps track of where to find the
next instruction so that a copy of the ...
Computer Architecture(3)
The central processor contains the arithmetic-logic unit
(ALU) and the control unit. The ALU is w...
Instruction Cycle

10

Bina Nusantara University

Operating System-Internal and Design Concept - Stallings
Fetch and Execute (1)
• The processor fetches the instruction from memory
• Program counter (PC) holds address of the inst...
Fetch and Execute (2)
• Fetched instruction is placed in the instruction
register
• Types of instructions
– Processor-memo...
Execution Cycle
Pipelining

Superscalar

Bina Nusantara University

13
Interrupt
• An interruption of the normal sequence of
execution
• Improves processing efficiency
• Allows the processor to...
Types of Interrupt
• Program
–
–
–
–

arithmetic overflow
division by zero
execute illegal instruction
reference outside u...
Interrupt Handler
• A program that determines nature of the interrupt and
performs whatever actions are needed
• Control i...
Instruction Cycle with interrupt

17

Bina Nusantara University

Operating System-Internal and Design Concept - Stallings
Interrupt Cycle
• Processor checks for interrupts
• If no interrupts fetch the next instruction for the current
program
• ...
Memory
• Memory Hierarchy
Highest Speed

Lowest Speed

19

Bina Nusantara University

Operating System-Internal and Design...
Disk Cache
• A portion of main memory used as a buffer to temporarily
to hold data for the disk
• Disk writes are clustere...
Cache Memory (1)
• Invisible to operating system
• Increase the speed of memory
• Processor speed is faster than memory sp...
Cache Memory (2)

22

Bina Nusantara University

Operating System-Internal and Design Concept - Stallings
Types of Cache Memory (1)
• There are generally 3 types of cache memory in
modern computer systems.
– L1 Cache is typicall...
Types of Cache Memory (1)
– L2 Cache is fast access memory (SRAM) which typically sits
between the CPU and main memory. It...
Types of Cache Memory (3)
• The idea of cache memory is to store frequently used
instructions or data in accessible memory...
The End

Bina Nusantara University

26
T03160020220124039 computeroverview 1-1
Upcoming SlideShare
Loading in...5
×

T03160020220124039 computeroverview 1-1

67

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
67
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • {}
  • T03160020220124039 computeroverview 1-1

    1. 1. Subject : T0316 Operating System Computer System Overview Week 1 - 1
    2. 2. Objectives At the end of this lecture, students are able to: • LO1: Describe the basic elements of a computer system and their interrelationship • LO1: Describe the computer Instruction Cycle • LO1: Describe the concepts of Interrupts, Memory Management and I/O types • LO1: Describe different type of cache memory Bina Nusantara University 3
    3. 3. Sub Topics • • • • • Basic Elements Instruction Cycle Interrupt Memory I/O Types Bina Nusantara University 4
    4. 4. Operating System •Manage resources •Provides a set of services to system users (User Interface) •Manages secondary memory and I/O devices Bina Nusantara University
    5. 5. Basic Elements • Processor • Main Memory – referred to as real memory or primary memory – volatile • I/O modules – secondary memory devices – communications equipment – terminals • System bus – communication among processors, memory, and I/O modules Bina Nusantara University 6
    6. 6. Computer Architecture (1) 7 Bina Nusantara University Operating System-Internal and Design Concept - Stallings
    7. 7. Computer Architecture(2) The program counter (PC) keeps track of where to find the next instruction so that a copy of the instruction can be placed in the current instruction register (IR) The current instruction register holds the instruction that is to be executed. The memory address register (MAR) is used to hold the memory address that contains either the next piece of data or an instruction that is to be used. 8 Bina Nusantara University Operating System-Internal and Design Concept - Stallings
    8. 8. Computer Architecture(3) The central processor contains the arithmetic-logic unit (ALU) and the control unit. The ALU is where data is processed. The control unit fetches instructions from memory, decodes them and synchronizes the operations before sending signals to other parts of the computer. The accumulator is in the arithmetic unit, the PC and the IR are in the control unit and the MAR and MBR are in the processor 9 Bina Nusantara University Operating System-Internal and Design Concept - Stallings
    9. 9. Instruction Cycle 10 Bina Nusantara University Operating System-Internal and Design Concept - Stallings
    10. 10. Fetch and Execute (1) • The processor fetches the instruction from memory • Program counter (PC) holds address of the instruction to be fetched next • Program counter is incremented after each fetch Bina Nusantara University 11
    11. 11. Fetch and Execute (2) • Fetched instruction is placed in the instruction register • Types of instructions – Processor-memory • transfer data between processor and memory – Processor-I/O • data transferred to or from a peripheral device – Data processing • arithmetic or logic operation on data – Control • alter sequence of execution Bina Nusantara University 12
    12. 12. Execution Cycle Pipelining Superscalar Bina Nusantara University 13
    13. 13. Interrupt • An interruption of the normal sequence of execution • Improves processing efficiency • Allows the processor to execute other instructions while an I/O operation is in progress • A suspension of a process caused by an event external to that process and performed in such a way that the process can be resumed Bina Nusantara University 14
    14. 14. Types of Interrupt • Program – – – – arithmetic overflow division by zero execute illegal instruction reference outside user’s memory space • Timer • I/O • Hardware failure Bina Nusantara University 15
    15. 15. Interrupt Handler • A program that determines nature of the interrupt and performs whatever actions are needed • Control is transferred to this program • Generally part of the operating system Bina Nusantara University 16
    16. 16. Instruction Cycle with interrupt 17 Bina Nusantara University Operating System-Internal and Design Concept - Stallings
    17. 17. 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 Bina Nusantara University 18
    18. 18. Memory • Memory Hierarchy Highest Speed Lowest Speed 19 Bina Nusantara University Operating System-Internal and Design Concept - Stallings
    19. 19. Disk Cache • A portion of main memory used as a buffer to temporarily to hold data for the disk • Disk writes are clustered • Some data written out may be referenced again. The data are retrieved rapidly from the software cache instead of slowly from disk Bina Nusantara University 20
    20. 20. Cache Memory (1) • Invisible to operating system • Increase the speed of memory • Processor speed is faster than memory speed Bina Nusantara University 21
    21. 21. Cache Memory (2) 22 Bina Nusantara University Operating System-Internal and Design Concept - Stallings
    22. 22. Types of Cache Memory (1) • There are generally 3 types of cache memory in modern computer systems. – L1 Cache is typically built into the architecture of the CPU. For Example the Pentium has a 16K cache. The PowerPC G5 has a 64K L1 cache. Typically L1 cache is broken down into two separate cache. One is used to hold instructions and the other to hold data. In the Sun4m architecture they are both 16kb. Bina Nusantara University 23
    23. 23. Types of Cache Memory (1) – L2 Cache is fast access memory (SRAM) which typically sits between the CPU and main memory. It can range between 256 - 4 Megabytes. This is typically part of the architecture. – L3 Cache is typically known as high access memory between the motherboard and CPU. Bina Nusantara University 24
    24. 24. Types of Cache Memory (3) • The idea of cache memory is to store frequently used instructions or data in accessible memory locations. • This is predicted by internal algorithms and prediction in the CPU or operating system cache manager. • The idea is to reduce the amount of time in contention i.e. going through the bus to main memory to reference an address. Bina Nusantara University 25
    25. 25. The End Bina Nusantara University 26
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×