Lecture 1 Flashcards

1
Q

What is a CPU or IO burst?

A

A burst is when a thread is doing some activity either IO activity or CPU activity.

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

What is the typical CPU burst distribution like for a process?

A

Many short CPU bursts and few long CPU bursts.

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

What are the CPU bursts like for IO bound processes?

A

Many short CPU bursts.

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

What are the CPU bursts like for CPU bound processes?

A

Few long CPU bursts.

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

What does the CPU scheduler do?

A

Selects one of the processes in the ready queue to be executed.

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

What are the ways a ready queue can be implemented?

A

FIFO queue
a priority queue
a tree
an unordered linked list.

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

What is each record in the ready queue stored as ?

A

A process control block.

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

What is preemptive scheduling?

A

The scheduler can interrupt the current running process, move it onto the ready or waiting queue and then chooses another process to run.

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

What is non-preemptive scheduling?

A

Once a process is running it runs to completion and nothing can interrupt it.

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

What is the main problem with preemptive scheduling?

A

Can result in race conditions.

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

What is the main problem with non-preemptive scheduling?

A

The performance of the system suffers (poor performance)

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

Which scheduling criteria do we want to maximize when developing a scheduling algorithm?

A
  1. CPU utilization

2. Throughput

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

Which scheduling criteria do we want to minimize when developing a scheduling algorithm?

A
  1. Turnaround time
  2. Waiting time
  3. Response time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is CPU utilization?

A

Keeping the CPU as busy as possible

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

Define throughput?

A

number of processes that complete their execution per time unit

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

Define turnaround time

A

Total amount of time to execute a particular process

17
Q

Define the waiting time

A

Total amount of time a process has been waiting in the ready queue.

18
Q

Define Response time

A

Amount of time it takes from when a request was submitted until the first process response is produced, not output.

19
Q

What are the two advantages of the FCFS algorithm?

A
  1. Simple

2. “Fair”

20
Q

What are the disadvantages of FCFS?

A

Average waiting and response time can be long.

21
Q

What is the convoy effect?

A

Convoy effect - short process queued behind long process

•Consider one CPU-bound and many I/O-bound processes