YEAR 1 CO1 WEEK 24 INTERUPTS Flashcards

1
Q

What are interrupts?

A

More efficient way of finding out whether device needs CPU time using an interrupt.
Interrupt is a signal indicating process of device needs attention.

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

What are two ways of dealing with events ?

A

Polling and interrupts

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

What is polling?

A

The purpose of the CPU is to process data and follow instructions. Also must be able to respond to events as they happen.
Polling checks device if it needs to do anything which is inefficient but is simple and predictable.

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

Advantages of polling?

A

Predictable and simple

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

Disadvantages of polling

A

Inefficient use of cpu

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

State the Interrupts Process.

A

If Interrupt level lower/ equal to current process current process continues.
If higher priority CPUs finishes current FDE cycle.
The contents of CPUs registers copied to stack in memory.
Location of appropriate interrupt service routine loaded into PC.
When ISR complete previous contents popped from stack and loaded back into registers.

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

What are priorities during interrupts?

A

If an interrupt arrives which is higher priority it will move the lower priority to a stack but if after that a lower priority appears it is told to wait then after that if the initial task is more important then it will take it out of stank and do that first or the other way round

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

What happens if the stack is full?

A

Stack over flow

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

What is ISR?

A

Interrupt service routine

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

What is a user interrupt?

A

A key press eg CTRL/ALT /DEL

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

What is a software interrupt

A

Run time error

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

I/O error

A

Printer out of paper

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

Hardware error

A

Out of battery waring

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

What are Higher order interrupts

A

Impending data loss

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

What is latency

A

Delay between input and desired output

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