All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: roderik.wildenburg@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?
Date: Thu, 22 Jan 2009 14:33:21 +0000	[thread overview]
Message-ID: <497883B1.6030005@domain.hid> (raw)
In-Reply-To: <5D63919D95F87E4D9D34FF7748CE2C2A01776D54@domain.hid>

roderik.wildenburg@domain.hid wrote:
>>> Please correct me if I am wrong: In your replacement 
>>> pthread_getschedparam would read scheduling parameters which
>>> should have been set with sched_setscheduler before(!) your
>> replacement gets
>>> active. Is this possible at all ? Wouldn´t I have to call 
>>> sched_setscheduler (in "sysup") before I fork? And if calling
>>> after the fork it realy would be racy. So this isn´t a very
>>> feasible solution, isn´t it? Changing the scheduling paramters of
>>> a running Xenoami task probably isn´t possible (probably there is
>>> nothing to recognize the change ?)?
>> You are just repeating what I said. So, I have not much more to
>> say.
>> 
> 
> Yes, but with my own words, so you can tell me whether I understood
> you or not ;-).

Yes you understood.

> 
>>> Linux and Linux is the lowest priority task in Xenomai. So, as
>>> soon as a task is in secondary mode every(!) Xenomai primary mode
>>> task would be scheduled in front of a secondary mode task, I
>>> thought. So, if your statement is right, I can´t see the
>>> difference between primary and secondary mode any more as a
>>> higher prioritized task obviously allways(!?) runs in front of a
>>> lower prioritized one independend whether it runs in primary or
>>> secondary mode? Is there some documenation I could read for
>>> better understanding ? Is this behaviour connected to the Xenomai
>>> "priority coupling" option?
>> Yes, it is what priority coupling means. But it really is the most
>> sane behaviour: you choose a priority and both Linux and Xenomai
>> schedulers cooperate to enfore this priority.
> 
> How are Linux tasks treated which are not linked with any Xenomay
> library, but whose scheduling is set to SCHED_FIFO and whose priority
> is set to some value higher than a Xenomai tasks (with
> sched_setscheduler). When do they run ?

They can prevent a Xenomai task running in secondary mode from running,
but not a Xenomai task running in primary mode.

-- 
                                                 Gilles.



  reply	other threads:[~2009-01-22 14:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4975EAF5.2000604@domain.hid>
2009-01-21  9:53 ` [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ? roderik.wildenburg
2009-01-21 10:53   ` Gilles Chanteperdrix
2009-01-21 12:27     ` roderik.wildenburg
2009-01-21 13:05       ` Gilles Chanteperdrix
2009-01-21 13:36         ` Jan Kiszka
2009-01-22 12:22           ` roderik.wildenburg
2009-01-22 12:34             ` Jan Kiszka
2009-01-22 11:06         ` roderik.wildenburg
2009-01-22 13:14           ` Gilles Chanteperdrix
2009-01-22 14:25             ` roderik.wildenburg
2009-01-22 14:33               ` Gilles Chanteperdrix [this message]
2009-01-22 13:42           ` Gilles Chanteperdrix
2009-01-20 13:16 roderik.wildenburg
2009-01-20 13:20 ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=497883B1.6030005@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=roderik.wildenburg@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.