Beruflich Dokumente
Kultur Dokumente
2.1
Computer-System Architecture
2.2
Computer-System Operation
2.3
2.4
Interrupt Handling
2.5
2.6
I/O Structure
After I/O starts, control returns to user program only upon I/O
completion.
wait instruction idles the CPU until the next interrupt
wait loop (contention for memory access).
At most one I/O request is outstanding at a time, no simultaneous
I/O processing.
After I/O starts, control returns to user program without waiting for I/O
completion.
System call request to the operating system to allow user to wait
for I/O completion.
Device-status table contains entry for each I/O device indicating
its type, address, and state.
Operating system indexes into I/O device table to determine
device status and to modify table entry to include interrupt.
2.7
Asynchronous
2.8
Device-Status Table
2.9
Only one interrupt is generated per block, rather than the one
interrupt per byte.
2.10
Storage Structure
Main memory only large storage media that the CPU can
access directly.
2.11
2.12
Storage Hierarchy
2.13
Storage-Device Hierarchy
2.14
Hardware Protection
Dual-Mode Operation
I/O Protection
Memory Protection
CPU Protection
2.15
Dual-Mode Operation
2.16
monitor
user
set user mode
I/O Protection
2.18
Memory Protection
2.19
2.20
Protection Hardware
The load instructions for the base and limit registers are
privileged instructions.
2.21
CPU Protection
2.22
General-System Architecture
Given the I/O instructions are privileged, how does the user
program perform I/O?
2.23
2.24