From: "Patrick" <kpa_info@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] RT, nonRT communication
Date: Tue, 30 Oct 2007 13:03:42 +0100 [thread overview]
Message-ID: <200710301203.l9UC3esT009573@domain.hid> (raw)
Ok, so if I understand I can't use a pthread_mutex between the main thread
and a rt_task ?
If I want use pthread_mutex between another pthread and a rt_task, must the
pthred be running with SCHED_OTHER ? This value is the default value for
pthread !
Thank's
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Envoyé : mardi, 30. octobre 2007 10:52
À : Patrick
Cc : xenomai@xenomai.org
Objet : Re: [Xenomai-help] TR: RT, nonRT communication
On 10/30/07, Patrick <kpa_info@domain.hid> wrote:
>
>
>
>
> Hi,
>
>
>
> Is it possible to share a pthread_mutex between a rt task and a linux
> pthread ?
No, it is not possible
>
> My two tasks must share resources and I must protect them against
concurrent
> access.
>
> If pthread_mutex is not the correct way to do it can you tell me how to
> achieve this ?
The way to handle these border line cases is to make your linux
pthread a xenomai thread running with the SCHED_OTHER scheduling
policy. Note that the main thread already has this property.
--
Gilles Chanteperdrix
next reply other threads:[~2007-10-30 12:03 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-30 12:03 Patrick [this message]
2007-10-30 13:29 ` [Xenomai-help] RT, nonRT communication Gilles Chanteperdrix
2007-10-31 7:37 ` ROSSIER Daniel
2007-10-31 8:43 ` Gilles Chanteperdrix
2007-11-01 10:04 ` Patrick
2007-11-01 11:14 ` Patrick
2007-11-01 11:23 ` Jan Kiszka
2007-11-01 12:33 ` Patrick
2007-11-01 15:46 ` Patrick
2007-11-01 16:02 ` Gilles Chanteperdrix
2007-11-12 14:00 ` Patrick
2007-11-12 15:48 ` Gilles Chanteperdrix
2007-11-12 21:20 ` Jan Kiszka
2007-11-01 15:46 ` Gilles Chanteperdrix
2007-11-10 11:25 ` Patrick
2007-11-10 12:24 ` Gilles Chanteperdrix
2007-10-31 9:39 ` Daniel Schnell
-- strict thread matches above, loose matches on Subject: below --
2007-11-13 7:37 Patrick
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=200710301203.l9UC3esT009573@domain.hid \
--to=kpa_info@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.