Input and output management Flashcards
What are the Categories of i\o devices?
Human Interface(screens keyboards) Storage Devices(disks tapes) Transmission devices(Network cards Modem)
How can you connect an i\o device ?
Through a port(incresingly rare)
or a bus (increasingly common)
What checks the i\o devices activities
Registers
What controller registers are there ?
data-in register — data coming from device;
∙ the data-out register — data going to device;
∙ the status register — bits indicating status of device;
∙ the control register — bits giving commands to device.
How may controller registers be accessed?
special instructions (increasingly rare) or standard memory instructions (increasingly common)
How can a computer approach the i/o devices ?
Polling
Interrupt
Is a computer faster or slower than an i\o device
faster
How does the polling approach to controling i\o devices work?
The processor checks the
device to see if it is ready.
How does the interrupt approach to controling i\o devices work?
The device signals the processor when it is ready
Is it better to use polling or interrupts to achieve maximum
processor performance?
Depends
In the case of embedded systems the processor has nothing to so it so its reccomendable to use polling
In what case is DMA used ?
When devices that deal with large volumes of data are involved (SSD) .
what is DMA for?
For transfering large blocks of data
Separate system calls exist for:
character I/O;
block I/O;
memory-mapped I/O;
network I/O.
What does a character i\o system call do ? and what are it’s characteristics?
enables an application to get/put
a single character from/to a device
It is low bandwith and straightfoward ()0ususally used foe human interfaces -> intterupt
What does a block i\o system call do ?and what are it’s characteristics?
O enable an application to read/write
many characters, and perhaps to seek on a device.
It is used for high volume transfers and for the device to carry on in autonomy