All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Daniel Simon <Daniel.Simon@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Posix skin illegal seek on sem_wait
Date: Tue, 25 Apr 2006 15:44:02 +0200	[thread overview]
Message-ID: <17486.10146.597736.78655@domain.hid> (raw)
In-Reply-To: <20060425134316.017836e8@domain.hid>

Daniel Simon wrote:
 > What makes the difference between a Xenomai thread and an ordinary nptl
 > thread, other than the compilation and linking flags?

The term "Xenomai thread" comes from the document "Life with Adeos":

http://snail.fsffrance.org/www.xenomai.org/documentation/trunk/pdf/Life-with-Adeos-rev-B.pdf

A Xenomai thread is a thread known by Xenomai scheduler. Ordinary
linuxthread or NPTL threads are known by Xenomai scheduler once they
acquire a "shadow" thread.

With the posix skin, an ordinary thread is created with a shadow thread
if you use the pthread_create service with the policy attribute (whether
explicit or inherited) set to SCHED_FIFO, or an ordinary thread may
acquire a shadow thread if this ordinary thread calls the
pthread_setschedparam service passing the value SCHED_FIFO as the policy
argument.

Please also note that for now, signals sent by the timer_* services will
cause migration of the target thread to secondary mode, which means that
the jitter will not be better for Xenomai threads than for ordinary
threads. For good timings, you should use the nanosleep or
clock_nanosleep services, or alternatively the non portable extensions
pthread_make_periodic_np and pthread_wait_np.

For other details about Xenomai implementation of the POSIX API, see:
http://snail.fsffrance.org/www.xenomai.org/documentation/trunk/html/api/group__posix.html

-- 


					    Gilles Chanteperdrix.


  reply	other threads:[~2006-04-25 13:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-25 11:43 [Xenomai-help] Posix skin illegal seek on sem_wait Daniel Simon
2006-04-25 13:44 ` Gilles Chanteperdrix [this message]
2006-04-25 14:54   ` Daniel Simon
2006-04-25 15:12     ` Gilles Chanteperdrix
2006-04-25 16:04     ` 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=17486.10146.597736.78655@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=Daniel.Simon@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.