interrupts Flashcards

1
Q

What is an interrupt in a computer system?

A

An interrupt is a signal from a device controller or software that causes the CPU to suspend its current activities and execute an interrupt handler to respond to the event.

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

What are the two main types of interrupt lines in most CPUs?

A
  • Nonmaskable interrupts (for critical events like memory errors)
  • Maskable interrupts (which can be turned off during critical CPU tasks).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is interrupt handling?

A

It involves saving the current state of the CPU, executing a designated routine (interrupt handler) ,then restoring the state to continue normal execution.

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

What hardware line does a CPU use to detect interrupts?

A

The interrupt-request line.

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

What is an interrupt vector?

A

A table containing memory addresses of interrupt handlers corresponding to different interrupt sources.

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

Why is vectored interrupting used?

A

It reduces the need to poll all devices by dispatching directly to the correct interrupt handler.

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

Why are interrupts preferred over polling for handling I/O operations?

A

Interrupts are more efficient as they allow the CPU to work on other tasks until notified by the device, whereas polling requires constant checking.

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

How are priorities assigned in interrupts?

A

Through interrupt priority levels, allowing the CPU to defer low-priority interrupts while responding to high-priority ones.

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

What is a nonmaskable interrupt used for?

A

To handle critical events such as unrecoverable memory errors.

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

What is interrupt chaining?

A

A method where each interrupt vector points to a list of handlers, checked one by one to service the request.

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

What are traps in the context of interrupts?

A

Software-generated interrupts used to request services from the operating system,such as handling page faults or system calls.

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

How do interrupts assist in virtual memory management?

A

They handle page faults by saving the process state, fetching the required page- and resuming execution.

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

What is the role of the first-level interrupt handler (FLIH)?

A

To save the context and queue the interrupt handling operation.

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

Why do modern operating systems use multilevel interrupts?

A

To handle varying levels of urgency between different events.

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