4 Jun 2012 23:29
Clarification on Rate montonic
Hello,
With the code hereafter, I run two periodic tasks (PER0 and PER1)
and scheduled them with the rate monotonic.
Also, a log of the excution follows the code.
PER0 has period 6000 ticks, while PER1 215.
Questions:
a) Since PER0 's pariod >> PER1's period should be PER1
the first to be scheduled?
According to the log, PER0 is the first one
b) how should I modify the code in order to have
PER1 scheduled before PER0?
Of course if I swap periodic_task(task_id[0], 6000);
with periodic_task(task_id[0], 215) I can observer
PER1 scheuled before PER0.
It seems that the first task to be scheduled
is the first to execute (with the call to the function
rtems_rata_monotonic_period).
Thank you in advance,
****************************************************
init.c code
****************************************************
...
int i = 0;
int l = 1;
for(i; i< 3; i++){
task_names[ i ] = rtems_build_name( 'P', 'R', '0'+i , ' ' );
status = rtems_rate_monotonic_create(task_names[i], &task_id[i]);
(Continue reading)
RSS Feed