Docsity

OS Lecture 2: Computer System Overview - Interrupts, Memory Hierarchy, Cache, Slides of Computer Science

Partial preview of the text

Download OS Lecture 2: Computer System Overview - Interrupts, Memory Hierarchy, Cache and more Slides Computer Science in PDF only on Docsity!

Operating Systems

Lecture 02:

Computer System Overview

Today

  • Announcements:
    • Exam 2 time conflict with Algorithms
    • First HW posted: due midnight before next Th lecture
  • Finish chapter 1:
    • Interruptions
    • Memory Hierarchy
    • Cache
    • Symmetric Multiprocessors and Multicore
    • Direct Memory Access
  • Solution today’s jeopardy
    • Grade yourself and hand it to me

Transfer of Control via Interrupts

Instruction Cycle With Interrupts

7

Program Timing: Long I/O wait

Simple Interrupt Processing

Transfer of Control With

Multiple Interrupts:

Transfer of Control With

Multiple Interrupts:

MEMORY HIERARCHY

Memory

  • Major constraints in memory amount speed expense
  • Memory must be able to keep up with the processor
  • Cost of memory must be reasonable in relationship to the other components
  • Memory references by the processor tend to cluster in time and space
  • Data is organized so that the percentage of accesses to each successively lower level is substantially less than that of the level above
  • Can be applied across more than two levels of
memory
  • Invisible to the processors, programmer, OS
  • Interacts with other memory management hardware
  • Reasons for its existence:
    • Processor must access memory at least once per instruction cycle
    • Processor execution is limited by memory cycle time
    • Exploit the principle of locality with a small, fast memory

Cache and

Main

Memory

Cache/Main-Memory Structure