Input and output management Flashcards

1
Q

What are the Categories of i\o devices?

A
Human Interface(screens keyboards)
Storage Devices(disks tapes)
Transmission devices(Network cards Modem)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can you connect an i\o device ?

A

Through a port(incresingly rare)

or a bus (increasingly common)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What checks the i\o devices activities

A

Registers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What controller registers are there ?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How may controller registers be accessed?

A

special instructions (increasingly rare) or standard memory instructions (increasingly common)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can a computer approach the i/o devices ?

A

Polling

Interrupt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Is a computer faster or slower than an i\o device

A

faster

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does the polling approach to controling i\o devices work?

A

The processor checks the

device to see if it is ready.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How does the interrupt approach to controling i\o devices work?

A

The device signals the processor when it is ready

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Is it better to use polling or interrupts to achieve maximum

processor performance?

A

Depends

In the case of embedded systems the processor has nothing to so it so its reccomendable to use polling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In what case is DMA used ?

A

When devices that deal with large volumes of data are involved (SSD) .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is DMA for?

A

For transfering large blocks of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Separate system calls exist for:

A

character I/O;
block I/O;
memory-mapped I/O;
network I/O.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does a character i\o system call do ? and what are it’s characteristics?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does a block i\o system call do ?and what are it’s characteristics?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does a Memory Mapped i\o system call do ?and what are it’s characteristics?

A

It enables an application to

map a device into memory. It’s covenient for a programmer not to deal with the low level processes of a device

17
Q

What does a Network i\o system call do ?and what are it’s characteristics?

A

It enables an application to
read/write many characters to network device socket. It was designed with a network failure expectation. (interrupt is used as networks work with large amounts of data)