From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: ニャン星人 <1173264124@qq.com>
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] 回复: Question about synchronisation between xenomai taskand linux task
Date: Tue, 15 Dec 2015 07:21:35 +0100 [thread overview]
Message-ID: <20151215062135.GJ16627@hermes.click-hack.org> (raw)
In-Reply-To: <tencent_1F2D495201DDAD5A77A043F3@qq.com>
On Tue, Dec 15, 2015 at 11:42:44AM +0800, ニャン星人 wrote:
> So you mean there is not simple and complete solution way apply by
> xenomai to figure out the synchronization problem between xenomai
> thread and linux thread? When I meet synchronization problem
> between xenomai thread and linux thread, do I have to handle it
> like xddp and pipe?
The solution which strictly does what you want is xddp. (rt_pipe is
deprecated, and linux pipes will cause both ends to switch to
secondary mode).
But you may consider using a Xenomai only synchronization primitive
(such as semaphores, message queues, etc...), and have the non
real-time thread be a Xenomai thread oscillating between primary and
secondary mode. Using the SCHED_OTHER or SCHED_WEAK policy for such
a thread should help.
--
Gilles.
https://click-hack.org
prev parent reply other threads:[~2015-12-15 6:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-14 14:56 [Xenomai] Question about synchronisation between xenomai task and linux task =?gb18030?B?pcul46Xz0MfIyw==?=
2015-12-14 22:35 ` Gilles Chanteperdrix
2015-12-15 3:42 ` [Xenomai] =?gb18030?q?=BB=D8=B8=B4=A3=BA__Question_about_synchronisation_between_xenomai_taskand_linux_task?= =?gb18030?B?pcul46Xz0MfIyw==?=
2015-12-15 6:21 ` Gilles Chanteperdrix [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=20151215062135.GJ16627@hermes.click-hack.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=1173264124@qq.com \
--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.