Resources: Input and Output Flashcards
how does the OS interface with IO
streams and blocks
give examples of stream devices
keyboard, screen, printer, network
give examples of block devices
USB, DVD, magnetic disk
how do we abstract IO so that the OS can interface with it
Device Drivers
what are the 4 layers of the software stack
user level- buffering and spooling
system calls
device driver
interrupt handlers
what are device drivers
hardware that translate between the OS and the hardware to allow them to interface. incorporate a buffer as part of DMA transfers
what are the two methods of using peripherals
polling- busy wait loop to see if status has changed
interrupt driven- create a demand for attention.
What is a DMA controller
moves IO data without processor intervention
what is a disk
auxiliary memory that stores data in blocks.