Skip to contentSkip to conversation

Jitter-test

Xenomai Uttamkumar Sinojia 2 participants 3 messages Jul 28, 2012

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines

wake-up time of more than one task is same, in such case which task will wake-up first can not be predicted. But as per the output (shown below), the task with higher priority  is woken-up first----WHY SO??????

Sorry, the statement is like this...

Here as all the task are having same priority. So when expected wake-up time of more than one task is same, in such case which task will wake-up first can not be predicted. But as per the output, the task with higher period is woken-up first----WHY SO??????

Let me tell more...
Here (as per the code) all task are having same priority(5).
But configured periodic in such a way that all will wake-up at the same time(say t1).(ret = rt_task_set_periodic(NULL, task_pstart_time, PERIOD_n);) PERIOD_n  task1->1ms, task2->2ms, task3->3ms, task4->4ms, task5->5ms.

So,
with respect to t1 after 1ms of time my first task (task1) will wake-up.

And again with respect to t1 after 2ms of time there will be two task going to wake-up(task1-1ms, task2-2ms). So in this case (as priority of both the task are same), which task will wake-up first should be non-deterministic. But i am getting deterministic behavior. Task with higher period (Here task2) is woken-up first than after task1 is woken-up ???

In short i want to tell that,
I have given same priority to all the task, but output it is behaving like task5 is having highest priority
 task4's priority is lower than task5 but higher than task3

 task3's priority is lower than task4 but higher than task2

 task2's priority is lower than task3 but higher than task1

 task1 is having lowest priority

??????????

#1 lore raw
Quoted 2 lines · Uttamkumar Sinojia

Here (as per the code) all task are having same priority(5).
But configured periodic in such a way that all will wake-up at the same time(say t1).(ret = rt_task_set_periodic(NULL, task_pstart_time, PERIOD_n);)

No, no, no, read my answer again.

Signature · 1 line
                                                                Gilles.
#2 lore raw
In reply to Uttamkumar Sinojia
Quoted 10 lines · Uttamkumar Sinojia
Quoted 7 lines

wake-up time of more than one task is same, in such case which task will wake-up first can not be predicted. But as per the output (shown below), the task with higher priority is woken-up first----WHY SO??????

Quoted 8 lines

Sorry, the statement is like this...

Here as all the task are having same priority. So when expected wake-up time of more than one task is same, in such case which task will wake-up first can not be predicted. But as per the output, the task with higher period is woken-up first----WHY SO??????

Let me tell more...
Here (as per the code) all task are having same priority(5).
But configured periodic in such a way that all will wake-up at the same time(say t1).(ret = rt_task_set_periodic(NULL, task_pstart_time, PERIOD_n);) PERIOD_n task1->1ms, task2->2ms, task3->3ms, task4->4ms, task5->5ms.

Also, when you "reply" to a mail, could you use the button "reply" of your MUA, in order to generate a mail with proper references?

Signature · 1 line
                                                                Gilles.