Skip to contentSkip to conversation

rt_task_slice() Behaviour

Xenomai-help Thomas, Brieuc (GE Healthcare) 2 participants 2 messages Apr 27, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

I read everywhere than Xenomai scheduler supports round-robin policies, but I don't find any explanation or example about how to manage it.

I used a Native API, my configuration is:
status=periodic:setup=202:tickval=1000000:..

And I would like to have a RR behaviour with a time slice to 10ms, and the only function than I found to do that is "rt_task_slice(&task, 10)" : but there is no behaviour change.

I tried to use xnpod_activate_rr, but I can't include pod.h without any errors. I think it's a stupid question but what I forget to do?

#1 lore raw
Quoted 4 lines · Brieuc (GE Healthcare)

Hello,

Quoted 10 lines

I read everywhere than Xenomai scheduler supports round-robin policies, but I don't find any explanation or example about how to manage it.

I used a Native API, my configuration is: status=periodic:setup=202:tickval=1000000:..

And I would like to have a RR behaviour with a time slice to 10ms, and the only function than I found to do that is "rt_task_slice(&task, 10)" : but there is no behaviour change.

I tried to use xnpod_activate_rr, but I can't include pod.h without any errors. I think it's a stupid question but what I forget to do?

rt_task_set_mode(0,T_RRB,NULL) from the task that wants to undergo the RR scheduling, after having called rt_task_slice to setup the time credit.

Signature · 1 line
Philippe.