Computer Architecture and OS
1
Computer Architecture and OS 1 Recap What is an OS? An - - PowerPoint PPT Presentation
Computer Architecture and OS 1 Recap What is an OS? An intermediary between users and hardware A program that is always running A resource manager Manage resources efficiently and fairly A easy to use virtual machine
1
2
3
4
Applications Operating System Computer Hardware
A von Neumann architecture
5
6
7
8
H Sutter, “The Free Lunch Is Over”, Dr. Dobb's Journal, 2009
Registers
Cache
Memory
Core Processor
9
Registers
Cache
Memory
Core
Registers
Cache Core Processor
Shared Cache
10
11
Memory
Register s
Cache Core
Register s
Cache Core Processor
Shared Cache Register s
Cache Core
Register s
Cache Core Processor
Shared Cache
Memory
12
13
Performance of various levels of storage depends on
distance from the CPU, size, and process technology used
Movement between levels of storage hierarchy can be
14
15
16
17
save CPU states (registers) execute the associated interrupt service routine (ISR) restore the CPU states return to the interrupted program
18
19
20
21
22
23
24
Process A Process B Process C Physical Memory
25
Virtual address Physical address
26
Thread 1: Deposiit(acc, 10) LOAD R1, account->balance ADD R1, amount STORE R1, account->balance Thread 2: : Deposiit(acc, 10) LOAD R1, account->balance ADD R1, amount STORE R1, account->balance Deposit(account, amount) { { account->balance += amount; }
27
28