L3 Flashcards

1
Q

Software design: Regular vs. real-time software - Static/dynamic structure

A

Regular: Object and data structures created/destroyed dynamicaly

Real-time: Static structures created at system initialization

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

Software design: Regular vs. real-time software - Control flow

A

Regular: Complex, implicit and data-dependent control flow

Real-time: Simple, explicit and deterministic control flow

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

Software design: Regular vs. real-time software - Concurrency

A

Regular: Fair interleaved execution - optimized for average case

Real-time: Predictable (priority-based) scheduler - predictable worst case

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

When can multiple tasks use the same sensor?

A
  • If reading from a sensor is fast and simple, tasks can share it
  • If reading form the sensor is complicated or takes a long time, a dedicated task might be more appropriate
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Separating common computations?

A
  • If activities need the same computed data, computing it in a separate task can be more efficient and easier to maintain
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Identifying tasks - Decomposing functions into tasks

A
  • avoid overhead (at runtime and in analysis) of too many tasks
  • consider separation of functions, especially those with different timing constraints
  • consider the joint use of sensors, actuators or intermediate results
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A single task is not always a good solution.

A
  • Handling many functions in a single task, at the frequency required by the strictest timing requirements, is often not possible
  • Even if it is possible, we often waste resources with this solution.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When can multiple tasks control the same actuator?

A
  • As for sensors, is writing to the actuator fast and simple?
  • Additionally, will the different functions interfere with each other?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Assigning task periods

A

Periodicity constraints
- use a task period shorter or equal to the periodicity value

Latest response time constraints
- Note: Period t does not satisfy “react within t times units”
- however, any period shorter or equal to t/2 does!

Separation, periodicity with output jitter, earliest response time
- these cant be satisfied in a good way by just period assignment

All tasks involved in a function must be considered
- giving just one task a short period does not improve the overall timing

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