rts Flashcards

1
Q

Periodic task?

A

For a periodic task the time interval between two subsequent arrivals of the task is guaranteed to be exactly Ti (the periodic parameter)

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

Sporadic task?

A

For a sporadic task the time interval between two subsequent arrivals of the task is guaranteed to be higher than, or equal to Ti (the periodic parameter)

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

Aperiodic task?

A

For an aperiodic task there is no guaranteed minimum time interval between two subsequent arrivals of the task.

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

What is systematic time skew?

A

Systematic skew is a phenomenon relating to periodic task executions, where the actual period becomes longer than the intended one, causing each subsequent task arrival to drift further and further away from its intended arrival time.

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

Why does systematic time skew happen?

A

Systematic skew is a phenomenon relating to periodic task executions, where the actual period becomes longer than the intended one, causing each subsequent task arrival to drift further and further away from its intended arrival time.

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

How to avoid systematic time skew?

A

By using an absolute delay statement, specifying an actual time instant on the timeline for the next execution (instead of a delay relative to the current point of execution), the execution time of the calling code does not influence the periodic behaviour. This can be achieved by means of, for example, the AFTER() operation in TinyTimber, where a method’s baseline is used to calculate a time instant on the timeline for the next execution of the method.

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

Describe how
the application programmer instructs the TinyTimber kernel to create a concurrent execution of
a given piece of program code.

A

To create a concurrent execution the programmer should use the ASYNC operation or one of its associated timing-aware versions (AFTER, SEND, BEFORE), and provide as a parameter an object method identifying the program code to execute concurrently.

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

Critical instant?

A

A critical instant refers to a task arrival scenario in which the response time of a given task is maximized.

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

Describe how the application programmer instructs the TinyTimber kernel to read the current
value of the system clock.

A

To read the current value of the system clock the programmer has two options:

The CURRENT OFFSET operation returns the time duration from the current baseline to the current time.

The T SAMPLE operation returns the time duration from a bookmarked baseline to the current baseline. A baseline of an earlier event is bookmarked by means of the T-RESET operation.

Both operations should refer to a common object of type Timer.

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

State the resolution (that is, the length of a time unit) of the system clock in the laboratory system used in the course.

A

The resolution of the TinyTimber system clock in the laboratory system is 10 μs.

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

Describe the meaning of a false path in the context of worst-case execution-time analysis.

A

A false path in worst-case execution-time analysis refers to a part of the program code that will never be executed at run-time, for example due to the logical expressions used in an ’if’-statement.

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

Describe the meaning of priority inversion in the context of single-processor scheduling.

A

By priority inversion we refer to a scenario where a higher-priority task cannot execute because
another task holds a resource that the higher-priority task needs, and a lower-priority task (that
does not use the resource) is able to execute instead.

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

State the major difference between the priority inheritance protocol (PIP) and the deadline inheri-
tance protocol (DIP).

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

SYNC() ?

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

ASYNC() ?

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

AFTER() ?

A
17
Q

BEFORE() ?

A
18
Q

SEND() ?

A

The SEND() operation requests that the specified method should
begin its execution by baseline at the earliest and complete its
execution by deadline at the latest:

19
Q

Describe the
purpose of the baseline in the TinyTimber run-time scheduler.

A

The baseline of a method execution in the TinyTimber kernel represents the earliest possible start
time of that method execution.

If a method is called with its baseline set to a time later than the
current time of the method call, e.g. by means of an AFTER() or SEND() operation, the execution
of the method will be delayed by the TinyTimber run-time scheduler until the time specified by
the baseline at the earliest.

20
Q

Explain the concept of priority ceiling as used in access-control protocols for critical regions.

A

A priority ceiling is associated with a shared resource, and represents the priority of the task with highest static priority that may use that resource.

During run-time the access-control protocol makes sure that a task X can enter the critical region of a shared resource only if the priority of task X is higher than all priority ceilings of the resources currently locked by tasks other than task X.

21
Q

State the major difference in the behaviour of the immediate ceiling priority protocol (ICPP) and
the original priority ceiling protocol (PCP).

A

In the original priority-ceiling protocol (PCP), a task X’s priority is raised only when a higher-priority task tries to acquire a resource that X has locked.

In the immediate ceiling priority
protocol (ICPP), a task X’s priority is immediately raised to the ceiling priority of a resource when X locks the resource.

22
Q

The TinyTimber run-time scheduler takes into account any priority that may be associated with
a method execution. Describe how the application programmer instructs the TinyTimber kernel
that a method execution should be associated with a priority.

A

Priority is set by specifying a deadline in a BEFORE() or SEND() operation.

TinyTimber uses the earliest-deadline-first (EDF) policy to select among
the ready tasks.

23
Q

Explain why the Traveling Salesman optimization problem cannot be solved by a polynomial-time
non-deterministic Turing machine.

A

To be solved by a polynomial-time non-deterministic Turing machine the Traveling Salesman problem
must be formulated as a decision problem. That is, a solution to the problem must be verified in
polynomial time with respect to the given Boolean predicate

24
Q

Global..?

A
25
Q

Dhalls effect and how do we solve the problem?

A

The solutions to Dhalls effect is the RM-US schedualing test.

26
Q

O bakers test? Formel och vad räknar du ut?

A
27
Q

Vad betyder partition schedualing (Bin-backing)?

A
28
Q

Describe the meaning of Dhall’s effect in the context of global multiprocessor scheduling.

State the underlying reason why Dhall’s effect occurs, and also give an example of how the effect
can be avoided.

A

RM-US

29
Q

RM-US

A
30
Q

RM-FF

A
31
Q
A