5 Echtzeitsysteme Flashcards

1
Q

Name the two requirements needed for real time.

A
  • Computation is correct

- Computation finishes in time (before deadline)

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

Was ist die Hard real time?

A

after a specific deadline, the results are not nuseful anymore

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

Was ist die Soft real time?

A

the usefulness of the results decrease after a specific deadline

OR:
Statistically suffienciently high percentage is availabel before the deadline

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

How many processes and resources are needed for Deadlock?

A
  • 2 Processes
  • 2 Resources
Example: Task A, B and Resources R1, R2
A occupies R1
B occupies R2
B requires R1
A requires R2
--> Deadlock
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How many processes and resources are needed for Priority Inversion?

A
  • 3 Processes
  • 1 Recource
Example: Tasks A, B, C and Recource R1
Prio(A) > Prio(B) > Prio(C)
C occupies R1
A starts, (pre-empting C)
A requires R1
B starts
B terminates (problem)
C continues, terminates
A occupies R1, terminates
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to fulfill Real-Time requirements?

A

► Polling
► Main loop and interrupts
► Real-time operating system

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

Definition Schedule:

A

Mapping of an execution sequence to a task system

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

Definition Feasibility:

A

A schedule is feasible, if no deadline is violated.

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

Definition Schedulability:

A

A task system is schedulable, if a feasible schedule exists.

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

What is behind the “earliest deadline first scheduling”?

A

Execute the task with smallest D first.

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

How can priority inversion be prevented?

A
  • Priority Inheritance Protocol

- Priority Ceiling Protocol

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

Priority Inheritance Protocol:

A

► Task A (high priority) needs a resource R
► Task B (low priority) currently holds R
► As soon as A starts waiting for R
▪ B inherits A’s priority
▪ B cannot be preempted by an intermediate priority
▪ No priority inversion possible
► Complex:
▪ Current holder of a resource must be determined
▪ Holder’s priority must be changeable while running

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

Priority Ceiling Protocol

A

► Ceiling priorities are assigned to the resources
► A resources priority is the highest priority of all tasks that may use it
► A task is upgraded to the resource’s priority as soon
as the task holds it.
► Can be calculated during design time
► Not optimal: T2 is upgraded to R1’s priority even if T4 is inactive

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