9.3 Interrupts Flashcards

1
Q

What is an interrupt

A

Async signal. Ie not occuring at specified time, hence special mechanism to deal with

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

How does the CPU detect interrupts

A
  • There is a special interrupt input wire
  • Interrupt checking step in instruction cycle (usually just before execute)
  • External interrupt controller used to prioritise interrupts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does the CPU handle interrupts (ie what steps does it need to do)

A
  • Store PC and data on stack
  • ‘Jump’ to interrupt handler
  • Return back to current program.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What architectural support can be put in place for interrupts

A
  • SPC register (save program counter)
  • Pre-defined interrupt addresses
  • Status bit for interrupts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the relation between the kernel and the wider operating system.

A

Provides core functionality for OS, scheduling IO, system calls. Is itself a program.

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

What are software interrupts

A

Like hardware interrupts but controlled by kernel. System calls etc.

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

What are timing interrupts

A

Time-slicing to share processor between multiple programs

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

How does the kernel scheduler work

A
  • Has queue of programs to schedule
  • When programs need to await something can start another
  • Otherwise time-slicing, interrupts etc.
  • When program is rescheduled is placed at back of queue
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are some example interrupts for the kernel scheduler

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