Scheduling and Gantt Charts Flashcards

1
Q

Why multiprogramming

A

max CPU utilization

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

Why CPU scheduling

A

implement multiprogramming

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

CPU scheduler criteria

A

CPU utilization Throughput Turnaround

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

Wait time

A

time spent in ready queue

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

Turnaround time

A

sum of: wait to get to memory+time in ready Q + CPU time + I/O time

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

response time

A

time from submission of request until 1st response produced

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

scheduling algorithms

A

FCFS (FIFO), SJF, RR, priority (SJF is form of priority)

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

burst time

A

burst in computers language is time slice allocated to CPU Alternate - CPU time for performing calculations CPU bound process might have a few long CPU bursts

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

determine length of next CPU burst

A

tn = actual length of nth CPU burst

T (tau)n+1 = predicted value for next CPU burst

a(alpha): 0<=a<=1

Then Tn+1 = atn + (1-a) Tn

need to decide assumptions for a

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

RR

A

cpu executes p1 for time quantum, then goes to next process; p1 is back in ready queue at end (FIFO)

quantum must be large for context switch, otherwise overhead is too high

large quantum for RR is FIFO

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

Gantt chart for RR

time quantum = 4

P1 burst = 24

P2 burst = 3

P3 burst = 3

A

p1 p2 p3 p1 p1 p1 p1

0-4 4-7 7-10 10-13 14-17 18-21 22-25 26-29

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