Professional Documents
Culture Documents
Operating System Lec 2
Operating System Lec 2
System Call
System Calls
Major components
Process management
Memory management
I/O
Secondary Storage
File System
Protection
Accounting
Shell (OS UI)
GUI
Networking
Process Management
Program- passive
Process-active
Processes
Priority
Rick Graziani
graziani@cabrillo.edu
Rick Graziani
graziani@cabrillo.edu
Processes
Rick Graziani
graziani@cabrillo.edu
Process management
Memory Management
Allocation techniques
De-allocation techniques
File Management
Creating/deleting directories.
Backing up files
OS is responsible for :
Storage allocation
Disk scheduling
I/O Management
device types:
I/O Structure
Synchronous I/O
wait
no
Asynchronous I/O
Networking
An OS typically has a built-in communication infrastructure that
implements:
A network protocol software stack
A route lookup module to map a given destination
address to a next hop.
A name lookup service to map a given name to a
destination machine.
Accounting
Keeps
Both
Protection
Processor protection
Hardware Protection
I/O Protection
Memory Protection
CPU Protection
Dual Mode
Dual-mode operation(cont.)
User
Interrupt/
fault
Set
user
mode
Monitor
Dual-mode operation
I/O Protection
Memory Protection
0
256000
monitor
Job1
Base register
300040
3000040
Job 2
420940
120900
Job 3
880000
Job 4
1024000
Limit register
CPU Protection
Simple
Layered
Microkernel
Modular
OS structure
File System
Accounting System
Protection System
Process Management
Memory
Management
Secondary Storage
Management
I/O System
user programs
OS
everything
hardware
Monolithic Design
Major Advantages:
Disadvantages
Hard to understand
Hard to modify
Unreliable
Hard to maintain
Monolithic Design
Major Advantages:
Disadvantages
Hard to understand
Hard to modify
Unreliable
Hard to maintain
Design
Layered approach each layer uses services of lower layers. Needs careful
definition of each layer. Layer N is user, Layer 0 is hardware.
Layered OS Structure
Modules-based Structure
OPERATING SYSTEM
OVERVIEW
Characteristics
Interrupts:
36
OPERATING SYSTEM
OVERVIEW
Storage
Hierarchy
Very fast storage is very expensive. So the Operating System manages a hierarchy of
storage devices in order to make the best use of resources. In fact, considerable effort
goes into this support.
Slow an Cheap
37
Virtual Machines
Provides interface
identical to underlying
bare hardware.
Creates illusion of
multiple processes - each
with its own processor
and virtual memory
processes
processes
processes