All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: "Stolz, Stefan, PGR2" <Stefan.Stolz@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] is rt_task_shadow ok?
Date: Wed, 04 Jul 2007 13:17:52 +0200	[thread overview]
Message-ID: <468B81E0.9050900@domain.hid> (raw)
In-Reply-To: <C0662F7F2A8A974FAA140822A2336BF0F17553@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1672 bytes --]

Stolz, Stefan, PGR2 wrote:
> Hello,
> 
> i have a little question about rt_task_shadow(). I'm not sure if it is
> ok to use ist like i do in my application.
> The basic conditions of my app are:
>  - it is a embedded linux (Sysgo ELinOS) with Xenomai 2.0.4 
>    (old but unfortunatly no newer version is available for ELinOS)

Role your own? For simple Xenomai applications it's ok to stick with
what Sysgo provides. But for more complex scenarios I would seriously
recommend to update Xenomai+kernel.

Using a recent version will enable you to gain better community support
and to exploit those nice enhancements and fixes we added in the meantime.

>  - the app listens on a tcp-port for commands from a client app.
>  - one command ist for starting a simulation of some signals on the
> parallel-port; 
>    this simulation have to be hard-real-time
> 
> at first the tcp-server-part was in a non-rt-app which startet the
> simulation-task with the normal xenomai-functions.
> While the simulation is running i have to exchange data between the
> tcp-server and the rt-task. 
> The Problem is, that things like semaphores and mutexes doesn't work
> with nrt-tasks.
> now i found the rt_task_shadow-function. So after starting my app i call
> this funktion and switch the process into a xenomai task (with the lowes
> priority). At the moment everything seems ok; but are there any known
> problems with this approach?

You already picked the recommended scheme: shadowed Linux task on the
borderline, mostly running under Linux control (SCHED_OTHER), but being
able to become RT for synchronisation with high-prio RT tasks.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

      reply	other threads:[~2007-07-04 11:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-04 10:44 [Xenomai-help] is rt_task_shadow ok? Stolz, Stefan, PGR2
2007-07-04 11:17 ` Jan Kiszka [this message]

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=468B81E0.9050900@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=Stefan.Stolz@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.