Week 1 Lec 2
Week 1 Lec 2
Week 1 Lec 2
(CSC 2205)
2
OUTLINES
• Single-user systems
• Batch systems
• Multiprogrammed systems
• Time-sharing systems
• Real-time systems
• Interrupts, traps, and signals
• CPU, I/O, and memory protection
• Recap of the lecture
3
SINGLE USER SYSTEMS
4
BATCH SYSTEMS
5
MEMORY LAYOUT
6
MULTIPROGRAMMED SYSTEMS
7
MULTIPROGRAMMED SYSTEMS
• Example: Two processes P1 and P2 with CPU and I/O bursts of one time unit
each
CPU I/O
Burst Burst
P1
P2
P1
…
P2
8
OS FEATURES NEEDED FOR MULTIPROGRAMMING
9
TIME-SHARING SYSTEMS
10
REAL-TIME SYSTEMS
11
REAL-TIME SYSTEMS ...
12
INTERRUPTS, TRAPS, AND SIGNALS
13
INTERRUPT HANDLING
14
HARDWARE PROTECTION
• Dual-Mode Operation
• I/O Protection
• Memory Protection
• CPU Protection
15
DUAL-MODE OPERATION
16
DUAL-MODE OPERATION …
Interrupt/fault
monitor user
set user mode
17
MEMORY MANAGEMENT
• Basic concepts
• Various techniques for memory management
• Logical to physical address translation
• Swapping
• Contiguous memory allocation: MFT, MVT
• External fragmentation
• Paging
• Hardware support for paging
• Internal fragmentation
18
MEMORY PROTECTION
19
USE OF BASE AND LIMIT REGISTER
20
HARDWARE SUPPORT
21
I/O PROTECTION
22
USE OF A SYSTEM CALL TO PERFORM I/O
23
CPU PROTECTION
24
OS COMPONENTS
• Process management
• Main memory management
• Secondary storage management
• I/O system management
• File management
• Protection system
• Networking
• Command-line interpreter (shells)
25
OPERATING SYSTEM SERVICES
26
ANY QUESTIONS ?
27