Operating Systems Operating System Structure
Lecture 2 Michael O’Boyle
1
Operating Systems Operating System Structure Lecture 2 Michael - - PowerPoint PPT Presentation
Operating Systems Operating System Structure Lecture 2 Michael OBoyle 1 Overview Architecture impact User operating interaction User vs kernel Syscall Operating System structure Layers Examples 2
1
2
3
4
5
6
7
8
9
11
Save user PC PC = trap handler address Enter kernel mode Save app state Verify syscall number Find sys_read( ) handler in vector table
Verify args Initiate read Choose next process to run Setup return values Restore app state
PC = saved PC Enter user mode
13
14
15
16
19
20
21
Memory Management I/O System Secondary Storage Management File System Protection System Accounting System Process Management Command Interpreter Information Services Error Handling
22
24
25
26
27
28
29
30
31
32
33