CPU scheduing Flashcards

1
Q

-process execution consists of a cycle of CPU execution and I/O wait.

A

CPU-I/O Burst Cycle

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

-selects from among the processes in memory that are ready to execute, and allocates the CPU to one of them.
-decisions:
1) switches from running to waiting state
2) switches from running to ready state
3) switches frm waiting to ready
4) terminates

scheduling under 1 and 4 is nonpreemptive
all other scheduling is preemptive

A

CPU scheduler

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

-this module 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
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
5
Q

(scheduling criteria)
-keep the CPU as busy as possible

A

CPU utilization

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

(scheduling criteria)
-# 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
7
Q

(scheduling criteria)
-amount of time to execute a particular process

A

turnaround time

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

(scheduling criteria)
-amount of time a process has been waiting in the ready queue.

A

waiting time

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

(scheduling criteria)
-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

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
11
Q

-once CPU given to the process it cannot be preempted until complete its CPU burst.

A

nonpreemptive

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

-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

preemptive

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 nexxt CPU burst. Use these length to schedule the process with the shortest time.
-is optimal-gives minimum average waiting time for a given set of processes.

A

shortest-job-first (SJR) scheduling

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

-a priority number (integer) is associated with each process.
-the CPU allocated to the process with the highest priority (smallest integer = highest priority).

A

priority scheduling

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

the problem with priority scheduling
-low priority processes may never execute

A

starvation

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

-the solution to starvation
-as time porgresses increase the priority of the process

A

aging

17
Q

-each process gets a small unit of CPU time (time quantum), usually 10-100 milliseconds. After this time has elapsed, the process is preempted and added to the end of the ready queue,
-if these are n processes n the ready queue and the time quantum is q, then each process gets 1/n of the CPU time in chunks of at most q time nits at ones. No process waits more than (n-1) q time units.

A

round robin