Processor Scheduling Flashcards

1
Q

How is First Come First Served Scheduling Implemented?

A

Allocates processors base don creation time of process. All processes are executed from start to finish.

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

What are the Pros of First in First out?

A

Minimises process switches, every process will eventually get processor time

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

What are the cons of First in First out?

A

Average waiting time is long

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

How is Round Robin Scheduling Implemented?

A

First Come First Serve but with a limit for given to how long a process can have in the processor in one go (Time Quantum). When this has been reached it goes to the back of the queue until it comes back around

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

How is priority implemented in Round Robin Scheduling?

A

New processes gain priority in the Queue over processes that have previously had time on the processor.

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

What are the Pros of Round Robin Scheduling?

A

Distributes Resources in a “fair” manner, one process does not take all the CPU time.
A quick process can pass relatively quickly.

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

What are the Cons of round Robin Scheduling?

A

Long Average waiting time when processes require multiple time quanta. Performance depends heavily on length of time Quantum.

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

How is Shortest Process Next Scheduling Implemented?

A

Shares the processor based on process execution time. Shortest goes first, slowest goes last.

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

What are the two types of Shortest Process Next Scheduling?

A

Preemptive and Nonpreemptive

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

What is the different between preemptive and Nonpreemeptive scheduling?

A

Preemptive interrupts processes while they are being executed in case of a shorted process starting. Nonpreemeptive doesn’t allow the interruption of current process.

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

What are the Pros of Shortest Process Next Scheduling?

A

Gives minimum average waiting time for a given set of processes assuming all execution times are estimated prefectly.

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

What are the Cons of Shortest Process Next Scheduling?

A

Execution time has to be estimated, estimates are not going to be perfect. Longer processes may have waited a long time if there is a constant influx of short processes.

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

What is multilevel queueing?

A

Different types of processes are queued in their own queue and the appropriate algorithm is used for each queue.

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

What three types are processes and the queues split into?

A

Interactive processes (interact with I/O), normal processes (system services), Batch processes (processes with I/O devices, pure number crunching)

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

How is priority split between queues?

A

Fixed Priority scheduling, time slicing

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

What are the Pros of Multilevel queueing?

A

It is complex and can accommodate a range of different performance objectives.

17
Q

What are the Cons of Multilevel queueing?

A

Because it is complex it can be difficult to calibrate and lots of decisions need to be made. Some processes can change their characteristics over time.

18
Q

Which two metrics might be used to choose an an algorithm?

A

User oriented: Focus on performance as perceived by the user
System Oriented: Focus on efficient utilisation of processor.

19
Q

What type of data is stored in Cache?

A

The most frequently used data, or the data being used at this moment in time in the process.

20
Q

What are the two types of queues used for Multicore Systems?

A

Common ready queue, Private queues

21
Q

How is Common ready queue used for multi core systems?

A

All cores share one large queue, when one core becomes available it take the process at first in the queue and starts executing.

22
Q

How are private queues used in multi core systems?

A

Each queue has its own specific queue, and each process is assigned to one queue.

23
Q

What two techniques are used to improve performance of multi core processors?

A

Load Balancing and processor affinity

24
Q

What is load Balancing?

A

Load balancing attempts to balance processes equally between cores, and is enforced automatically by a common ready queue. You don’t want one core to be in down time when another core has processes waiting for it.

25
Q

What is processor affinity?

A

Processor Affinity trues to keep the same process on the same core for as long as possible to keep the cache with relevant data. In hard affinity there is no moving whatsoever but in soft affinity processes may move if there is sever processor imbalance.