Hubert Talbot wrote:
> Hi,
> 
> I'm new to Xenomai.
> 
> I am studying xenomai and I would like to kwow how to apply round-robin.
> 
> Specifically, what to do with (do I have to?):
> 
>       - the kernel configuration
> 
>               Real-time sub-system/Timing/Enable periodic timing ?
>

Yes. Round-robin scheduling is only available with tick-based timing.

>       - the timer configuration 
> 
>               rt_timer_set_mode(rt_timer_ns2ticks(???))  ?
> 

rt_timer_set_mode(ns), to switch the default oneshot mode for the native
API to tick-based.

>       - the task configuration
> 
>               rt_task_set_periodic(???)  ?

Not this one; it controls whether your task follows a periodic timeline
using the rt_task_wait_period() service. It's not related to RRB.

>               rt_task_set_mode(0, T_RRB, 0)    ?

Yes, this one is needed to switch on RRB for the calling task.

>               rt_task_slice(???)  ?
> 

And this one allows to set the time quantum alloted to the task (in ticks).

> Thanks in advanced.
> 
> Hubert
> 
> 
> 
> 
> _______________________________________________
> Xenomai-help mailing list
> [email protected]
> https://mail.gna.org/listinfo/xenomai-help
> 


-- 
Philippe.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to