Recap: Architecture Support in OS - Bowdoin Collegesbarker/teaching/courses/os/14fall/lectur… ·...

7
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 Interrupts Scheduling, 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

Transcript of Recap: Architecture Support in OS - Bowdoin Collegesbarker/teaching/courses/os/14fall/lectur… ·...

Page 1: Recap: Architecture Support in OS - Bowdoin Collegesbarker/teaching/courses/os/14fall/lectur… · Mac OS X - hybrid approach 12. Sean Barker Modules 13 Sean Barker Summary!System

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

Page 2: Recap: Architecture Support in OS - Bowdoin Collegesbarker/teaching/courses/os/14fall/lectur… · Mac OS X - hybrid approach 12. Sean Barker Modules 13 Sean Barker Summary!System

Sean Barker

System Calls

3

Sean Barker

Making a System Call

4

user mode

kernel mode

Page 3: Recap: Architecture Support in OS - Bowdoin Collegesbarker/teaching/courses/os/14fall/lectur… · Mac OS X - hybrid approach 12. Sean Barker Modules 13 Sean Barker Summary!System

Sean Barker

Example System Calls

5

Sean Barker

System Call Implementation

6

Page 4: Recap: Architecture Support in OS - Bowdoin Collegesbarker/teaching/courses/os/14fall/lectur… · Mac OS X - hybrid approach 12. Sean Barker Modules 13 Sean Barker Summary!System

Sean Barker

OS Architecture: Mac OS X

7

Sean Barker

OS Architecture: Windows 8

8

Page 5: Recap: Architecture Support in OS - Bowdoin Collegesbarker/teaching/courses/os/14fall/lectur… · Mac OS X - hybrid approach 12. Sean Barker Modules 13 Sean Barker Summary!System

Sean Barker

Monolithic Kernel Design

9

Sean Barker

Layered OS Design

10

User programs

Device drivers

Virtual memory

I/O channel

CPU scheduler

Hardware

Page 6: Recap: Architecture Support in OS - Bowdoin Collegesbarker/teaching/courses/os/14fall/lectur… · Mac OS X - hybrid approach 12. Sean Barker Modules 13 Sean Barker Summary!System

Sean Barker

Microkernel Design

11

Sean Barker

Mac OS X - hybrid approach

12

Page 7: Recap: Architecture Support in OS - Bowdoin Collegesbarker/teaching/courses/os/14fall/lectur… · Mac OS X - hybrid approach 12. Sean Barker Modules 13 Sean Barker Summary!System

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