Lesson 5 - Interrupts Flashcards

1
Q

What is an interrupt?

A

It is a signla generated that tells the processor to stop what it’s currntly doing and give its attnetion to another process.

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

What is a hardware interrupt?

A

-Getting new inputs form a keyboard, or mouse, or connecting devices

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

What are priorty levels?

A
  • How urgents the interrupts nee to be addressed.
  • Similar to a queue.
  • Interrupts are storeed in a data structure called a priority queue.
  • Soted in the interrupt register.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When the does the processor check for interrupts?

A

-It checks for interrupts at the end of te fetch devocde execute cycle.

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

What does ISR stand for?

A

-Stands for Interrupt service rountine.

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

What is a job in the procesor?

A

-A process that is runing right now.

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

What is pre-emptive sheduling?

A

-Jobs can be started and stopped by the operating system

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

What is non pre-emptive sheduling?

A

-Once the job as started it can finish

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

What is the round robin sheduling routine?

A
  • Each job is given a cetian amount of processor time. In which it can be executed.
  • It is pre-emptive.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the advantages of RR?

A

-It insures that each process gets the same amount of processor time.

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

What are the disadvantages of Round Robin?

A

-Long jobs take alot longer to complete.

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

What are Multi-level feedback queues?

A

It uses multiple queues isntead of single queues- Almost like a vip folder.
- It is non pre-emptive.

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

What are the advantages of MLFQ?

A
  • Each queue has a different level of priority.
  • Each queue is ordered by priority.
  • High priority jobs cna be executed first.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the disadvantages of MLFQ?

A
  • it is difficult to impleemnt because deciding how to order tasks is difficult.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly