From: Philippe Gerum <rpm@xenomai.org>
To: "Moser, Dan" <DMoser@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] xenoami task pids
Date: Wed, 15 Mar 2006 14:29:50 +0100 [thread overview]
Message-ID: <441816CE.2040206@domain.hid> (raw)
In-Reply-To: <067C9A1F6AFEB643895EA4513E116884178FBD@exfp1.Railpowertech.local>
Moser, Dan wrote:
> Hi,
>
> I am a Linux and Xenomai newbie.
>
> I have two separate Xenomai 2.1-rc4 environments, one I built with
> Gentoo running under VMware (WindowsXP Host) and another (that somebody
> else built sometime in the recent past) with Gentoo running native on a
> PC.
>
> I have identical code (and Makefile) that simply executes an
> rt_task_create(), rt_task_set_periodic(), and rt_task_start() and runs
> (seemingly) proper on both boxes.
>
> But:
>
> On one box, the main thread and the Xenomai task thread have DIFFERENT
> pids (reported via a call to getpid()). On the other box, the main
> thread and the Xenomai task thread have the SAME pid (again, reported
> via a call to getpid()).
>
> Is there some sort of Xenomai and/or application config/build option
> that controls this behavior?
Looks like one box uses an old glibc with LinuxThreads support (multiple pids are
visible from the application, one for each created thread including the main one),
and the other one a more recent NPTL-based pthread support (getpid() returns a
single "main" pid per process, although the NTPL still enforces a 1:1 mapping
between user-space and kernel threads that support them). This is not a Xenomai
issue in fact, but rather a glibc one, given that Xenomai relies on the glibc to
create user-space threads before promoting them to the real-time domain it controls.
Reading this may help:
http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/cins_nptl.html
>
> Thanks in advance,
> Dan
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
--
Philippe.
next prev parent reply other threads:[~2006-03-15 13:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-14 21:50 [Xenomai-help] xenoami task pids Moser, Dan
2006-03-14 22:30 ` Jan Kiszka
2006-03-15 13:29 ` Philippe Gerum [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-03-16 13:47 Moser, Dan
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=441816CE.2040206@domain.hid \
--to=rpm@xenomai.org \
--cc=DMoser@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.