Академический Документы
Профессиональный Документы
Культура Документы
Operating Systems
Operating System Structures
Saiful Anwar
State Polytechnic of Jakarta
January, 2007
Computer System Structures
Types of interrupt
Polling
Vectored interrupt system
Synchronous I/O
wait instruction idles CPU until next interrupt
no simultaneous I/O processing, at most one outstanding
I/O request at a time.
Asynchronous I/O
After I/O is initiated, control returns to user program without
waiting for I/O completion.
System call
Device Status table - holds type, address and state for
each device
OS indexes into I/O device table to determine device status
and modify table entry to include interrupt.
Direct Memory Access (DMA)
I/O Protection
Memory Protection
CPU Protection
Dual-mode operation
user(1).
Interrupt/ Set
When an interrupt or fault user
mode
fault occurs, hardware
switches to monitor
mode. Monitor
Privileged instructions
only in monitor mode.
I/O Protection
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).
Protection and Security (Chapter 14)
Provides interface
processes
identical to underlying
bare hardware.
kernel kernel kernel
Virtual machine Creates illusion of
multiple processes - each
hardware with its own processor
and virtual memory
Summary of OS Structures