Professional Documents
Culture Documents
Lec 3
Lec 3
Systems
LECTURE 3
Agenda for Today 2
Dual-Mode Operation
I/O Protection
Memory Protection
CPU Protection
I/O Protection 4
Perform I/O
Memory Protection
6
Process management
Main memory management
Secondary storage management
I/O system management
File management
Protection system
Networking
Command-line interpreter (shells)
Operating System
Services
11
Services …
Services for efficient system
operation:
Resource management
Accounting
Protection
OS Kernel
13
Users
Applications
Operating System API, AUI
Operating System Kernel
Computer Hardware
Kernel
Interrupt Trap
System Calls
15
Calls
Process Control
File Management
Device Management
Information maintenance
Communications
System Call Execution 17
Call Execution …
Kernel indexes the dispatch table, which
contains pointers to service routines for
system calls.
Service routine is executed and return
parameter or error code placed at well-
known places (usually a CPU register).
Control given back to user program.
Library function executes the instruction
following trap.
System Call … 19
Process
Library Call
System Call
trap
Dispatch Table
Service
Code
Kernel
Code
Operating System 20
Structures
Simple Structure
Layered Approach
Microkernels
Virtual Machines
Simple Structures
21
UNIX consists…
of two separable parts,
the kernel and the system programs.
Every thing below the system call
interface and above the physical
hardware is the kernel.
An enormous amount of functionality
combined in one level, UNIX is difficult
to enhance as changes in one section
could adversely affect other areas.
UNIX System 23
Structure
Recap of lecture 24
Operating
Systems
Lecture 3