Chapter 11 (I/O Management and Disk Scheduling) Flashcards
What is programmed I/O?
CPU issues I/O and busy waits for it to complete
What is interrupt-driven I/O?
CPU issues I/O and continues, is interrupted when I/O completes
What is DMA?
CPU issues I/O and DMA module takes over, freeing the CPU
What information is contained in a call to the DMA module?
Whether to read/write
Address of the I/O device
Starting memory address to read or write to
Number of words to read or write
What are the two OS design objectives for I/O?
Efficiency
Generality
What is generality?
Have all devices use the same interface
What are two types of I/O devices?
Block-oriented
Stream-oriented
What are block-oriented I/O devices?
Information stored in fixed size blocks
Transfers made a block at a time
What are stream-oriented I/O devices?
Transfers information as a stream of bytes (no block structure)
What are the advantages of a single buffer?
Allows next unit to be read while previous is processed
Process can be swapped since I/O is using OS buffer
When might a double buffer be inadequate?
Process performs rapid bursts of I/O
What can be used if a process performs rapid bursts of I/O?
Circular buffering
Define: Access time
Sum of seek time and rotational delay
Define: Seek time
Time it takes to position the head at the desired track
Define: Rotational delay
Time it takes for the beginning of the sector to reach the head