Lec01 Intro
Lec01 Intro
Interactive is important!
Ask Questions!
• Computer-system operation
– One or more CPUs, device controllers connect
through common bus providing access to shared
memory
– Concurrent execution of CPUs and devices
competing for memory cycles
Pentium IV Chipset
Proc
Caches
Busses
adapters
Memory
Controllers
Disks
I/O Devices:
Displays Networks
Keyboards
Emerging Technologies
DRAM Interleaving
Bus protocols
Coherence,
Memory L2 Cache Bandwidth,
Other Processors
Hierarchy Latency
Network
Communication
L1 Cache Addressing,
VLSI Protection,
Instruction Set Architecture Exception Handling
Application
Virtual Machine Interface
Operating System
Physical Machine Interface
Hardware
• Software Engineering Problem:
– Turn hardware/software quirks
what programmers want/need
– Optimize for convenience, utilization, security,
reliability, etc…
• For Any OS area (e.g. file systems, virtual memory,
networking, scheduling):
– What’s the hardware interface? (physical reality)
– What’s the application interface? (nicer abstraction)
8/27/07 Kubiatowicz CS162 ©UCB Fall 2007 Lec 1.11
Interfaces Provide Important Boundaries
software
instruction set
hardware
• Online supplements
– See “Information” link on course website
– Includes Appendices, sample problems, etc
• Question: need 7th edition?
– No, but has new material that we may cover
– Completely reorganized
– Will try to give readings from both the 6th and 7th
editions on the lecture page
Attention
Interactive!!!
• Most Likely:
– Memory Management
– I/O Management
– CPU Scheduling
– Communications? (Does Email belong in OS?)
– Multitasking/multiprogramming?
• What about?
– File System?
– Multimedia Support?
– User Interface?
– Internet Browser?
• Is this only interesting to Academics??
Altair 8080
8/27/07 Kubiatowicz CS162 ©UCB Fall 2007 Lec 1.31
Simple OS: What if only one application?
• Examples:
– Very early computers
– Early PCs
– Embedded controllers (elevators, cars, etc)
• OS becomes just a library of standard services
– Standard device drivers
– Interrupt handlers
– Math libraries
OS code
10
Virtual V page no. offset
Address
Page Table
Access
index V Rights PA
into
page
table table located
in physical P page no. offset Physical
memory Address
10
Applications
User Mode
Standard Libs
Kernel Mode
Hardware
• OS as illusionist:
– Make hardware limitations go away
– Provide illusion of dedicated machine with infinite
memory and infinite processors
• OS as government:
– Protect users from each other
– Allocate resources efficiently and fairly
• OS as complex system:
– Constant tension between simplicity and
functionality or performance
• OS as history teacher
– Learn from past
– Adapt as hardware tradeoffs change