cheddar.exe
file.File/Open model
, load this file into Cheddar.
Edit/Software/Task
.
As shown by Figure 2, a task may have several attributes. The most importants are:
Name
: the unique name of the component
Task type
: the type of the task, which specifies how the task will be released.
A task may be periodic, sporadic, aperiodic, ...
Capacity
: the WCET of the task.
Period
: the delay between two successive release times of the task.
Deadline
: the deadline the task has to meet. It is a delay relative to the period of the task (i.e. not an absolute deadline).
Address space name
and processor name
where the task is supposed to be located/run.
Priority
: priority level assigned to the task. 255 is the higher level of priority; 0 is the lower.
ex1.xmlv3
add
3 tasks with the following attributes:
Capacity
= 2, Deadline
= 6, Period
= 6
Capacity
= 2, Deadline
= 9, Period
= 9
Capacity
= 3, Deadline
= 12, Period
= 12
Priority
attributes were assigned according to Rate Monotonic within the allowed priority range (from 1 to 255).
Deadline
).
Start time
is set to 0 in order to model a synchronous task set.
To do this exercise, download and save the file ex2.xmlv3
We investigate a system embedded in a car which displays various data to the driver. This system is composed of several tasks and we want to verify their deadlines.
The system is composed of 5 tasks:
An enginer implements all those tasks and run them alone on a RTOS (Real-Time Operating System). After several measurements, he shows that:
We assume that all tasks start their first activation at the same time. Furthermore, all tasks must complete their current activation before they have to start the next one.
We assume an execution platform composed of one processor which provides a preemptive fixed priority scheduler. Priorities range from 0 to 31. 0 is the lowest priority value.
Question 1:
ex2.xmlv3
by adding the tasks presented above.
Question 2:
With Cheddar, compute the
worst case response time for the
SENSOR_1, the SENSOR_2, and the SENSOR_3 task. Do they meet their deadline?
source rtems.bash