From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: roland Tollenaar <rolandtollenaar@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] thread in thread
Date: Sat, 24 Feb 2007 19:42:51 +0100 [thread overview]
Message-ID: <17888.34603.816719.451150@domain.hid> (raw)
In-Reply-To: <bc4264770702241027g1657b785x837ea9038c772293@domain.hid>
roland Tollenaar wrote:
> Hi,
>
> I have a xenomai task running in a Qt application. Its doing its tricks at 1 ms.
>
> I just need brief confirmation of the following:
>
> I have made my own separate thread (QThread) and then started a real
> time task within that. I strongly get the feeling that a real-time
> task is a thread of its own (I am not so knowledgeable of threads in
> plain C ) and I have now ended up starting a thread in a thread?
>
> Is this suspicion correct?
No, with Xenomai, a thread is real-time when it uses real-time services
and non real-time when it uses non real-time services. This is well
explained in the document "Native API tour". Furthermore, you can turn
a Linux thread into a Xenomai thread by running rt_task_shadow if you
have chosen the native API, or pthread_setschedparm if you have chosen
the POSIX API.
>
> I also still need to discover how to stop a xenomai task from my
> application. At the moment I have to kill the entire process with $
> kill -9 PID . Any hints would be welcome.
You can terminate a Xenomai thread either by running ordinary Linux
pthread_cancel, or by running rt_task_delete if you prefer the native
API.
--
Gilles Chanteperdrix.
next prev parent reply other threads:[~2007-02-24 18:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-24 18:27 [Xenomai-help] thread in thread roland Tollenaar
2007-02-24 18:42 ` Gilles Chanteperdrix [this message]
2007-02-24 21:10 ` roland Tollenaar
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=17888.34603.816719.451150@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=rolandtollenaar@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.