Please enable JavaScript.
Coggle requires JavaScript to display documents.
Input/Output_2 (Interrupts (Examples (abnormal situation, such as power…
Input/Output_2
Interrupts
-
Examples
abnormal situation, such as power failure
-
-
-
-
-
Interrupts
-
Servicing an interrupt
- Suspend program in progress
- Save context, including last instruction executed
& data values in registers, in the PCB or the
stack area in memory
- Lower priority interrupts are held until higher
priority interrupts are complete
- Branch to interrupt handler program
Use of Interrupts
-
Indicate abnormal event (CPU originates
for notification & recovery)
-illegal operation, hardware error, power failure
-
-
-
-
Direct Memory Access
DMA Instructions
To initiate DMA,
programmed I/O is used to
send the following info:
- Starting location
in memory
- Size of the bloc
to be transferred
- Location of data
on I/O device
- Direction of transfer:
read (I/O to memory) or
write (memory to I/O)
-
-
DMA Initiation & Control
- DMA transfer. In this case data is
transferred from disk to memory
- Upon completion, disk controller
sends completion interrupt to CPU
- Programmed I/O used to prepare
disk controller for transfer by providing
required info & initiating transfer
-
-