rts Flashcards
Periodic task?
For a periodic task the time interval between two subsequent arrivals of the task is guaranteed to be exactly Ti (the periodic parameter)
Sporadic task?
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)
Aperiodic task?
For an aperiodic task there is no guaranteed minimum time interval between two subsequent arrivals of the task.
What is systematic time skew?
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.
Why does systematic time skew happen?
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 to avoid systematic time skew?
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.
Describe how
the application programmer instructs the TinyTimber kernel to create a concurrent execution of
a given piece of program code.
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.
Critical instant?
A critical instant refers to a task arrival scenario in which the response time of a given task is maximized.
Describe how the application programmer instructs the TinyTimber kernel to read the current
value of the system clock.
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.
State the resolution (that is, the length of a time unit) of the system clock in the laboratory system used in the course.
The resolution of the TinyTimber system clock in the laboratory system is 10 μs.
Describe the meaning of a false path in the context of worst-case execution-time analysis.
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.
Describe the meaning of priority inversion in the context of single-processor scheduling.
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.
State the major difference between the priority inheritance protocol (PIP) and the deadline inheri-
tance protocol (DIP).
SYNC() ?
ASYNC() ?