Scheduling (RM and EDF) Flashcards

1
Q

What is hyperperiod?

A

Is the minimum interval of time after which the schedule repeats itself.

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

What is job response time?

A

It is the time (measured from the release time) at which the job is terminated.

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

What is task response time?

A

It is the maximum response time among all the jobs.

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

What is the processor utilization factor?

A

Ui = sum(i=1, i<n, Ci/Ti)

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

How the rate monotonic (RM) scheduling algorithm works?

A

RM scheduling algorithm is a simple rule that assign priorities to tasks according to their request rates. Tasks with higher requests rates (shorter periods) will have higher priority. It is a fixed-priority assignment.

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

What are the Liu and Layland assumptions?

A
  1. Tasks are periodic with deadlines equal to period (Di=Ti)
  2. Tasks do not suspend themselves
  3. Tasks have bounded execution time (worst case execution time)
  4. Tasks are independent
  5. Scheduling overhead is negligible
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How the priorities are assigned by RM algorithm?

A

Shorter period means higher priority.

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

What is the sufficient condition for scheduling in RM?

A

sum(i=1, i<= n * (2^[1/n] - 1)

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

Is RM an optimal scheduling policy? Explain.

A

Among all static priority assignments, RM is an optimal scheduling policy. It means that if exist another static priority assignment that can make a task set schedulable, RM will schedule all tasks as well.

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

How does the priority assignment on Earlier Deadline First work?

A

Priorities are dynamic, it means that tasks priority may change during execution time. Tasks with closer deadline receive a higher priority.

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

How the EDF scheduling algorithm works?

A

The task in the ready queue with the higher priority (closer deadline) is executed. Sort priorities such that tasks with closer deadlines get higher priority at run-time.

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

Which is the schedulability test in EDF when D=T? Is it necessary or sufficient condition?

A

sum(i=1, i<= 1

It is necessary and sufficient condition when D=T

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

Under which condition does EDF is optimal?

A

EDF is optimal when utilization is below 1. It performs badly under overload.

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

When is necessary to use exact analysis schedulability test?

A

When deadline is different from period (D<T)

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

How to do the exact analysis (response time analysis)?

A

For the highest priority test, Ri = Ci (since it is not going to be preempted.

For all the other ones:
Ri = Ci + sum { ceiling[Ri/Tj] * Cj , for all j in hp(i)}

*hp(i) is the set of tasks with priority higher than task i
Formula is recursive until Ri is stable.

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

Which is the schedulability test in EDF when D<T? Is it necessary or sufficient condition?

A

g(0,L) < L

G(0,L) = sum(i=1, i= sum (i=1, i<=n, { botton[ (L-Di) / Ti ] + 1 } * Ci )