Recap: Architecture Support in OS - Bowdoin Collegesbarker/teaching/courses/os/14fall/lectur… ·...
Transcript of Recap: Architecture Support in OS - Bowdoin Collegesbarker/teaching/courses/os/14fall/lectur… ·...
Sean Barker
Recap: Architecture Support in OS
1
OS Service Hardware Support
Protection Kernel/user mode, protected instructions, base/limit registers
Interrupts Interrupt vectors
System calls Trap instructions and trap vectors
I/O InterruptsScheduling, error recovery,
accounting Timer
Synchronization Atomic instructions
Virtual memory Translation look-aside buffers
Sean Barker
Today: OS Services and Structure
! System call implementation
! Organization and components of an OS
2
Sean Barker
System Calls
3
Sean Barker
Making a System Call
4
user mode
kernel mode
Sean Barker
Example System Calls
5
Sean Barker
System Call Implementation
6
Sean Barker
OS Architecture: Mac OS X
7
Sean Barker
OS Architecture: Windows 8
8
Sean Barker
Monolithic Kernel Design
9
Sean Barker
Layered OS Design
10
User programs
Device drivers
Virtual memory
I/O channel
CPU scheduler
Hardware
Sean Barker
Microkernel Design
11
Sean Barker
Mac OS X - hybrid approach
12
Sean Barker
Modules
13
Sean Barker
Summary
! System calls as interface to the OS
! OS design approaches• Monolithic• Layered• Microkernels• Modules
! Tradeoffs: simplicity vs. performance
14