Topic D Flashcards

1
Q

What is the job of the scheduler?

A

The scheduler selects next job from ready queue

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

What does non-preemptive mean?

A

once a process has been allocated to the CPU it stays on there until it terminates

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

What can be considered when picking a scheduling policy?

A
  • maximise throughput
  • minimise response time
  • minimise turn around time
  • minimise waiting time
  • maximise CPU efficiency
  • Ensure fairness
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you calculate a FCFS average wait time?

A

add individual wait times together then divide by the number of processes

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

How do you calculate a shortest job first average wait time?

A

reorder processes depending on their burst time, add individual wait times together then divide by the number of processes

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

Disadvantage of non-preemptive

A

Leads to process starvation

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

what is the shortest remaining time first ?

A

The preemptive version of shortest job first (not going to be asked for average wait time)

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

what can character can be set to by the user or assigned to by the OS to do with higher process priority?

A
  • memory usage
  • I/O throughput
  • Total CPU time
  • Time already elapsed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you calculate a Priority Scheduling average wait time?

A

reorder processes depending on the highest priorities, add individual wait times together then divide by the number of processes

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

what is aging?

A

a method used to combat process starvation by increasing the priority of processes that having been waiting a long time in the queue.

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

How do you calculate a Round Robin average wait time?

A

add the time slice if the burst time is longer, or add the burst time if it’s shorter than time slice then divide by the number of processes

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

What is turn around time?

A

turn around time is the time when it terminated minus the time when it arrived in the process queue

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

What is wait time?

A

it’s turn around time minus it’s burst time

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

How do you calculate a Round Robin average turn around time?

A

you don’t minus the amount of time while it’s not processing, add them all together and divide by the number of processes

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