recap: the os abstraction - bowdoin collegesbarker/teaching/courses/os/18spring/lec… · system...

9
Sean Barker Recap: The OS Abstraction 1 User-level Applications Operating System Hardware virtual machine interface physical machine interface Sean Barker OS Resource Management 2 Memory I/O Processor Processes, scheduling, synchronization Allocation, protection, virtual memory Disk management, filesystems, networking Hardware OS Services

Upload: others

Post on 18-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Recap: The OS Abstraction - Bowdoin Collegesbarker/teaching/courses/os/18spring/lec… · system libraries system-call interface to the kernel signals terminal handling character

Sean Barker

Recap: The OS Abstraction

1

User-level Applications

Operating System

Hardware

virtual machine interface

physical machine interface

Sean Barker

OS Resource Management

2

Memory

I/O

Processor Processes, scheduling, synchronization

Allocation, protection, virtual memory

Disk management, filesystems, networking

Hardware OS Services

Page 2: Recap: The OS Abstraction - Bowdoin Collegesbarker/teaching/courses/os/18spring/lec… · system libraries system-call interface to the kernel signals terminal handling character

Sean Barker

Protection: User and Kernel Mode

3

Sean Barker

System Calls

4

Page 3: Recap: The OS Abstraction - Bowdoin Collegesbarker/teaching/courses/os/18spring/lec… · system libraries system-call interface to the kernel signals terminal handling character

Sean Barker

Making a System Call

5

user mode

kernel mode

Sean Barker

Example System Calls

6

Page 4: Recap: The OS Abstraction - Bowdoin Collegesbarker/teaching/courses/os/18spring/lec… · system libraries system-call interface to the kernel signals terminal handling character

Sean Barker

System Call Implementation

7

Sean Barker

Traps

8

0: 0x00080000

1: 0x00100000

2: 0x00100480

3: 0x00123010

Illegal address

Memory violation

Division by zero

System call

Trap Vector

...

Memory Addresses

Page 5: Recap: The OS Abstraction - Bowdoin Collegesbarker/teaching/courses/os/18spring/lec… · system libraries system-call interface to the kernel signals terminal handling character

Sean Barker

I/O Control & Interrupts

9

0: 0x2ff080000

1: 0x2ff100000

2: 0x2ff100480

3: 0x2ff123010

keyboard

mouse

timer

disk 1

Interrupt Vector

Sean Barker

Synchronous & Asynchronous I/O

10

Page 6: Recap: The OS Abstraction - Bowdoin Collegesbarker/teaching/courses/os/18spring/lec… · system libraries system-call interface to the kernel signals terminal handling character

Sean Barker

Hardware Timer

11

Sean Barker

OS Architecture: Mac OS X

12

Page 7: Recap: The OS Abstraction - Bowdoin Collegesbarker/teaching/courses/os/18spring/lec… · system libraries system-call interface to the kernel signals terminal handling character

Sean Barker

OS Architecture: Windows 8

13

Sean Barker

Monolithic Kernel Design

14

Page 8: Recap: The OS Abstraction - Bowdoin Collegesbarker/teaching/courses/os/18spring/lec… · system libraries system-call interface to the kernel signals terminal handling character

Sean Barker

Layered OS Design

15

User programs

Device drivers

Virtual memory

I/O channel

CPU scheduler

Hardware

Sean Barker

Microkernel Design

16

Page 9: Recap: The OS Abstraction - Bowdoin Collegesbarker/teaching/courses/os/18spring/lec… · system libraries system-call interface to the kernel signals terminal handling character

Sean Barker

Hybrid Design in Mac OS X

17

Sean Barker

Modular Design

18