chapter 1 computer system overview sections 1.1 to 1.6 instruction exe cution interrupt memory...

10
Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem 1.10

Upload: ginger-harrison

Post on 03-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem

Chapter 1 Computer System Overview

• Sections 1.1 to 1.6• Instruction exe cution• Interrupt • Memory hierarchy• Cache memory• Locality: spatial and temporal

• Problem 1.10

Page 2: Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem

Chapter 2 Operating System Overview

• Sections 2.1 to 2.4• Objectives and functions of OS• Evolution of OS• Dual-mode operations: user and kernel

modes (what and why)• (hardware) interrupts [including timer, I/O,

etc.] and (software) traps [including exceptions and system calls]

Page 3: Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem

Chapter 3 Process Description & Control

• Sections 3.1 to 3.5• Process control block (PCB)• Process creation• Context switching (what and why)• Shell: internal vs. external commands• Processes and their relationships via ps –ef• UNIX signals• System calls

• fork(), exec(), opendir(), etc.

Page 4: Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem

Chapter 3 Processes

Page 5: Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem

Chapter 3 Processes

Note that PID and process name may be different on different systems.

Page 6: Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem

Chapter 4 Threads

• Sections 4.1 to 4.2• User-level threads vs. kernel-level

threads• Hybrid threads• pthread program

Page 7: Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem

User-level threads vs. Kernel-level threads

User-Level vs. Kernel-Level Threads

Page 8: Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem

scheduling of user-level threads vs. kernel-level threads

Thread Scheduling

Page 9: Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem

Chapter 5 Concurrency: Mutual Exclusion and Synchronization

• Sections 5.1 to 5.7• Race condition, critical section, and mutual exclusion• On a uniprocessor system, interrupt is the root of all

evil• Hardware solutions: disable/enable interrupts,

test&set, swap• Semaphore: binary and counting• Monitor and condition variables• Bounded buffer producer/consumer problem:

• Both mutex and synchronization• Message passing: send/receive, blocking/nonblocking• Reader and writer problem

Page 10: Chapter 1 Computer System Overview Sections 1.1 to 1.6 Instruction exe cution Interrupt Memory hierarchy Cache memory Locality: spatial and temporal Problem

Chapter 5 Concurrency: Mutual Exclusion and Synchronization

• Programming with pthread