linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Monica Puig-Pey <puigpeym@unican.es>
To: <linux-rt-users@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: synchronization mechanisms
Date: Mon, 20 Jun 2011 16:27:41 +0200	[thread overview]
Message-ID: <4DFF58DD.3040801@unican.es> (raw)


Hello!
As I told you in previous questions I'm developing drivers using the 
2.6.31-11-rt patch under ubuntu 10.04.
It is very important for me to know about which real time 
synchronization mechanisms do I have.
I found the RT-mutexes, with priority inherintance, the plists (priority 
lists) and now I'm looking for more information about semaphores. I 
haven't found anything relevant in the code that I could know that they 
work well under real time, having a priority queue of tasks waiting on 
it. So I've made an easy example where I have 3 kernel threads with 
different priorities each (60,70,80) in the semaphore queue. Then I see 
is always the most priority kthread who wakes up the first. Good! It 
seems to work as a RT semaphore!
In my code I have an error. I can use down_interruptible but I can't use 
down_killable. Why is it?
Could anybody give me some help about semaphores in the rt-patch and 
about any other synchronization mechanism thought for real time?

Thanks a lot

Mónica
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

                 reply	other threads:[~2011-06-20 14:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4DFF58DD.3040801@unican.es \
    --to=puigpeym@unican.es \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-users@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).