Scheduling Flashcards

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

What does RR stand for

A

Scheduling

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

What does FCFS stand for

A

First Come First Serve

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

What does MFQ stand for

A

Multilevel feedback queues

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

What does SJF stand for

A

Shortest job first

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

What does SRT stand for

A

Shortest remaining time

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

What are schedulers used for

A

Used by operating systems to manage the jobs that are being completed by the CPU to ensure maximum use of processing time.

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

Explain Round robin

A

Most basic scheduler
Each time a job comes it to be completed it is added to the end of a queue.
Each job is given an amount of time to be completed, if it is not completed within the set time, then it is pushed to the bottom of the queue.

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

What are the benefits and negatives of Round robin

A

Can work well if all the jobs are similar in size and similar in priority.
The system ignores any priority of a job and ignores that each job will take different amounts of time, so it can be very inefficient.

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

Explain FCFS

A

As jobs come in they are added to the queue

Jobs are completed in the order they came in regardless of time take or priority.

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

What are the benefits and negatives of FCFS

A

Very easy to set up
Can cause a long delay in getting jobs done.
Generates bad performance within a computer system.

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

Explain Multi-level feedback queues

A

There are multiple queues of jobs.
The CPU switches between queues to get jobs to complete.
If a job is waiting too long in one queue, it will be moved to a higher priority location in another queue to get the job completed quicker.
Each separate queue has its own scheduler.

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

What are the benefits and negatives of Multi-level feedback queues.

A

They offer the best results.

Very CPU intensive

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

Explain SJF

A

Selects the shortest job in the queue to complete first.

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

What are the benefits and negatives of SJF

A

As it is always looking for the shortest job, larger processes can face starvation.
Not feasible for implementation as the operating system as you rarely know the amount of time to complete each new job.

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

Explain SRT

A

A pre-emptive version of shortest job first.
As a job arrives, it is compared to the currently running job, if it is longer than the current job, then it is added to a queue.
If the new job is shorter, then the current job is pushed to the queue.

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

What are the benefits and negatives of SRT

A

Requires very little CPU usage as it only makes a comparison as a job arrives or as it completes.
Short jobs are always completed quickly, but bigger jobs will face starvation.