Practical stuff for Exam Flashcards

1
Q

2 Scheduling Pre-emptive Algorithm:

A
Round Robin(RR)
Smallest remaining time first (SRTF)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

2 Scheduling Non-Pre-emptive Algorithm:

and what does non-preemptive mean?

A

FCFS
SJN(SPN)

Once the process gets scheduled, it will run till the completion

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

Waiting time formula?

A

WT=Ts - Ta

start time - arrival time

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

Turnaround time formula?

A

TT=WT + B (burst time)

B=end time -start time

TT= finish time - AT

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

Response time formula?

A

RT=start time(Ts) - process start time(T0)

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

Response ratio formula?

A

TT/B

Turnaround time /Burst time

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

How to plot ‘X’ in FCFS table?

A

1) Sort Process table by arrival time
2) Plot arrival time using ->
3) Plot ‘X’ from start of burst time till finish
4) if same priority level then choose with earliest AT

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

How to plot ‘X’ in SPN table

A

1) Sort Process table by burst time
2) plot ax with arriavl time O
3) do process which has shortest bT just look at sorted table
4) If longer process but higher priority do higher priority one

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

How to plot ‘X’ in RR table

A

Round Robin- each process is an given an equal time slice

1) Sort Process table by arrival time
2) Plot arrival time using ->
3) you can only put ‘X’ as many times as quantum/time slice
4) if ‘X’ plotted and no other process has arrived then plot again
5) follow order in process table

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

How to plot ‘X’ in SRTF table

A

No queue

1) Sort Process table by arrival time

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

Cache: calculate Fault Ratio(FR)

A

FR = Fault/(Fault + Hit)

change answer to %

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

Cache: calculate Hit Ratio(HR)

A

HR= Hit/(Fault + Hit)

Or

1 - FR

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

How to compare algorithms?

A

Choose the one closest to Optimum
Best Cases:
Highest HR
Lowest FR

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

How to solve Banker’s Algorithm

A

need = max/claim - allocation

Then do avaliable +allocation

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