Chapter 5: CPU Scheduling Flashcards

1
Q

Selects from among the processes in memory that are ready to execute, and allocates the CPU to one of them

A

CPU Scheduler

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

CPU scheduling decisions may take place when a process:

A
  1. Switches from running to waiting state
  2. Switches from running to ready state
  3. Switches from waiting to ready
  4. Terminates
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Scheduling under 1 and 4 is

A

nonpreemptive

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

All other scheduling is

A

preemptive

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

gives control of the CPU to the process selected by the short-term scheduler; this involves:
switching context
switching to user mode
jumping to the proper location in the user program to restart that program

A

Dispatcher module

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

time it takes for the dispatcher to stop one process and start another running

A

Dispatch latency

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

amount of time to execute a particular process(finish time - submitted time)

A

Turnaround time

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

amount of time a process has been waiting in the ready queue(turnaround time - cpu burst time)

A

Waiting time

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

amount of time it takes from when a request was submitted until the first response is produced, not output (for time-sharing environment)

A

Response time

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

of processes that complete their execution per time unit

A

Throughput

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
Max CPU utilization
Max throughput
Min turnaround time 
Min waiting time 
Min response time
A

Optimization Criteria

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

FCFC (First Come First Serve) is…

A

Non preemptive scheduling

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

Associate with each process the length of its next CPU burst. Use these lengths to schedule the process with the shortest time

A

Shortest-Job-First (SJF) Scheduling

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

Two schemes:
nonpreemptive – once CPU given to the process it cannot be preempted until completes its CPU burst
preemptive – if a new process arrives with CPU burst length less than remaining time of current executing process, preempt. This scheme is know as the Shortest-Remaining-Time-First (SRTF)

A

Shortest-Job-First (SJF) Scheduling

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

is optimal – gives minimum average waiting time for a given set of processes

A

SJF

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