Ch 6 Flashcards

1
Q

alternating CPU busts

A

Process starts with CPU bust and alternates with I/O bust

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

short-term-scheduler

A

chooses processes from job pool to be executed in CPU

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

nonpreemptive

A

When a process switches from the running state to the waiting state (for example, as the result of an I/O request or an invocation of wait() for the termination of a child process)

When a process terminates

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

dispatcher

A

the module that gives control of the CPU to the process selected by the short-term scheduler.

This function involves the following:

  • Switching context
  • Switching to user mode
  • Jumping to the proper location in the user program to restart that program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

FCFS

A

First Come First Serve
managed with a FIFO queue
* may lead to starvation if long processes are scheduled first.

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

SJF

A

Shortest Job First

Difficulties: knowing the lengths, fairness, and starvation

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

SRTF

A

Shortest Remaining Time First

Solves starvation. still hard to predict execution time.

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

Priority-scheduling

A

Problem: Starvation – low priority processes may never execute
Solution: Aging – as time progresses increase the priority of the process

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

RR

A

Round Robin
if time quantum or time slice is large, it operates as FIFO, if it is too small, CPU cycles wasted with context switching.

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

multilevel queue scheduling

A

foreground vs background processes

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

convoy effect

A

short process behind log process
minimizing waiting time
Methods like SJF, SRTF, priority scheduling, RR, and multilevel queue have this effect.

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

foreground process

A

interactive process with the need of fast response time (may be implemented with RR).

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

background process

A

batch process that may be implemented with FCFS.

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

CPU scheduling decisions occur when a process..

A

◦ Switches from running to waiting (nonpreemptive)
◦ Switches from running to ready (preemptive)
◦ Switches from waiting to ready (preemptive)
◦ Terminates (nonpreemptive)

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

CPU scheduling criteria

A

CPU utilization, Throughput, Waiting time, Fairness

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