1.2 Processor Scheduling Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What are interrupts?

A

A signal to the CPU to change the process it is completing.

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

Explain the steps of interrupt process.
(4 points)

A
  • Interrupt signal of higher priority received.
  • Stores values of registers for current task.
  • Completes interrupt service routine.
  • Restores previous task.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some examples of why interrupts happen?

A
  • Power failure
  • Clock (scheduled) interrupt
  • Input / Output requests
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Processor Scheduling ?

A

Assigning different tasks to a CPU at different
times to give the appearance of multi-tasking.

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

How should Hardware be kept ?

A

As busy as possible

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

What are the 5 types of Processor Scheduling methods ?

A
  • First come First Served,
  • Shortest Remaining Time
  • Shortest Job First
  • Round robin,
  • Multi-level feedback queues,
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does first come first served work?

A

do the task that started first first.

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

How does Shortest remaining time/job first work? (2 points)

A

Do the task with the Shortest remaining time/job first.
An issue with this is that longer tasks may never be completed.
Another issue is that processing power is used to work out which task has the shortest remaining time/ job first.

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

How does Round robin work?

A

Cycle through all processes using a consistent time slice.

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

How do Multi-level feedback queues work?

A

Manage multiple priority queues of jobs based on resources they use

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