Input/Output Flashcards

1
Q

What is an interrupt ?

A

A hardware signal

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

What is ISR ?

A

Interrupt service routine

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

When is ISR executed ?

A

In response to an interrupt

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

Who sends an interrupt to whom ?

A

I/O device to processor

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

What is the bus control line dedicated to interrupts called ?

A

Interrupt - Request line

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

What does an interrupt-acknowledge signal do ?

A

Informs the device that the interrupt signal has been received

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

What is interrupt latency ?

A

Delay between an interrupt being received and an ISR starts

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

What increases interrupt latency ?

A

Saving and restoring registers

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

What is the full form of DMA ?

A

Direct Memory Access

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

What is DMA used for ?

A

Transfer large blocks of data at high speed

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

What is the advantage of DMA ?

A

No interference from processor

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

What does DMA do ?

A

Transfer block of data directly

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

To what does DMA place the block of data in ?

A

External device and main memory

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

What controls DMA ?

A

DMA controller

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

What information does the program need to tell the DMA controller before calling it ?

A
  1. Starting address
  2. Number of words in block
  3. Direction of transfer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How does the DMA controller inform the processor that the instruction has been executed ?

A

It sends an interrupt signal

17
Q

Can the program that requested DMA transfer continue while DMA executes ?

A

No, it can’t

18
Q

Can the processor do any other work ?

A

Yes, it can execute other programs

19
Q

In an OS, what kind of programs request I/O operations ?

A

Application programs

20
Q

What does the OS do when a DMA operation starts to the application program that requested it ?

A

It puts the application in blocked state

21
Q

When does the application program go back to the runnable state ?

A

After the DMA controller sends an interrupt request indicating it’s end

22
Q

What is a bus master ?

A

Device that can initiate data transfers on a bus at any given time

23
Q

What are the two main approaches to bus arbitration ?

A

Centralised and distributed

24
Q

What happens in centralised bus arbitration ?

A

Single bus arbiter performs arbitration

25
Q

What happens in distributed bus arbitration ?

A

All devices participate in selection of next bus master