Lecture 2
Lecture 2
IT 1206/CS 1207
Hardware Protection
Memory
Memory able to transmit information at
close to memory speeds.
Device controller transfers
I/O Protection
Memory Protection
CPU Protection
Data 2
Code Code
Stack 1
Data Data
Heap 1
Heap Heap
Code 1
Stack Stack
Stack 2
Prog 1 Data 1
Prog 2
Virtual Virtual
Address Heap 2 Address
Space 1 Code 2
Space 2
OS code
Physical Address
Operating Systems - LectureSpace
2
CPU Protection
Timer - interrupts computer after specified period to
ensure that OS maintains control.
Timer is decremented every clock tick.
When timer reaches a value of 0, an interrupt occurs.
Timer is commonly used to implement time sharing.
Timer is also used to compute the current time.
Load timer is a privileged instruction.
Detriments:
Performance overhead severe for naïve implementation
OS is responsible for
File creation and deletion
Directory creation and deletion
Supporting primitives for file/directory manipulation.
Mapping files to disks (secondary storage).
Backup files on archival media (tapes).