Module 2 Flashcards
(55 cards)
Computer System Architecture
System Bus (Memory Controller -> Memory) -> CPU -> Disk Controller -> Printer Controller -> Tape-drive Controller
Execution Sequence
Fetch -> Decode -> Execute - > Write results -> PC -> Repeat
____ and ____ execute concurrently
I/O devices, CPU
each _____ has a local buffer
device controller
_____ moves data from/to main memory to/from the local
buffers
CPU
_______ interrupts CPU on completion of I/O
device controller
is a signal to the processor indicating an event that needs immediate attention
interrupt
Interrupt handling process:
- The processor stops current execution
- Saves state/context
- Transfers control to an interrupt handler
- Resumes execution after handling
transfers control to the interrupt service routine
Interrupt
segments of code that determine
action to be taken for each type of interrupt
Interrupt Service Routine
contains the address of service routines
Interrupt vector
software generated interrupt caused either by an error or a
user request
Trap
Types of interrupt
Polling
Vectored interrupt system
refers to the process by which a program or system continuously checks the status of a device or
resource at regular intervals to determine if it requires attention.
Polling
is a mechanism in computer systems where interrupts are handled using a specific address (vector) associated with the interrupt source
Vectored interrupt system
Incoming interrupts are disabled while another interrupt is
being processed to prevent a _____
lost interrupt
2 I/O Structures
Synchronous I/O
Asynchronous I/O
- wait instruction idles CPU until next interrupt
- no simultaneous I/O processing, at most one outstanding I/O request at a time
Synchronous I/O
after I/O is initiated, control returns to user program without waiting for I/O completion.
Asynchronous I/O
holds type, address and state for
each device
Device Status table
Used for high speed I/O devices
able to transmit information at
close to memory speeds
Direct Memory Access (DMA)
3 Storage Structure
Main memory
Secondary storage
Tertiary Storage
only large storage media that the CPU can access directly
Main memory
extension of main memory that has
large nonvolatile storage capacity
Secondary storage