* [Xenomai-help] rt_task_slice() Behaviour
@ 2006-04-27 9:46 Thomas, Brieuc (GE Healthcare)
2006-04-27 10:26 ` Philippe Gerum
0 siblings, 1 reply; 2+ messages in thread
From: Thomas, Brieuc (GE Healthcare) @ 2006-04-27 9:46 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 577 bytes --]
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?
[-- Attachment #2: Type: text/html, Size: 2168 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-help] rt_task_slice() Behaviour
2006-04-27 9:46 [Xenomai-help] rt_task_slice() Behaviour Thomas, Brieuc (GE Healthcare)
@ 2006-04-27 10:26 ` Philippe Gerum
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2006-04-27 10:26 UTC (permalink / raw)
To: Thomas, Brieuc (GE Healthcare); +Cc: xenomai
Thomas, Brieuc (GE Healthcare) wrote:
> 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?
>
>
>
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.
--
Philippe.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-27 10:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-27 9:46 [Xenomai-help] rt_task_slice() Behaviour Thomas, Brieuc (GE Healthcare)
2006-04-27 10:26 ` Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.