On Jan 28, 2008 3:10 PM, axel axel <[EMAIL PROTECTED]> wrote:
> Hi,
> thanks for the response but all that i want to know is a general answer:

Next netiquette lesson: when you reply a mail, please quote the part
of the mails that were relevant and to which you were replying, and
ask your questions under these quotes.

> what does the periodic timer do respect oneshot timer ? ( i understand that
> xenomai scheduler can't stop realtime task in execution ).

Your understanding is wrong: Xenomai scheduler can stop real-time task
in execution, as any preemptive scheduler can.

The issue you faced is the fact that round-robin scheduling is
unimplemented if the system timer is set to one-shot mode. But
round-robin scheduling works if the system timer is set to periodic

But round-robin scheduling only works with tasks belonging to the same
priority group, so it will not help Linux to run. And letting Linux
run is mandatory if you want your system to run correctly.

So, you have to suspend from time to time, and the best way to do this
is to implement your system as an event driven system.

> I think that periodic timer has the chance to run other task with the same
> priority even if the task is working ( for example a sum like this a = a + 1
> + sin( a );)

Computations unrelated to any inputs or outputs make little sense. If
you relate computations to event-driven inputs and outputs, your
system will let Linux run automatically.

                                               Gilles Chanteperdrix

Xenomai-core mailing list

Reply via email to