All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] First thoughts on fast xnsynch
Date: Thu, 04 Sep 2008 09:17:14 +0200	[thread overview]
Message-ID: <48BF8B7A.1070507@domain.hid> (raw)
In-Reply-To: <48BF8AA6.6090702@domain.hid>

Jan Kiszka wrote:
> Hi Gilles,
> 
> I spent a few brain cycles on the design of a generic fast-lock via
> xnsynch. The first thing was defining the lock word and going through
> its use cases.
> 
> You suggested to realize lock stealing directly in user space, but I
> don't see now how this should work reasonably. Our problem is that we
> would have to atomically check for the woken state AND compare the
> current priority against the owner ones. Imaginable only if we replicate
> the priorities into the lock word - but this makes things at least
> horribly complicated (e.g. when priorities change). So I think we have
> to drop this goal. Or what did you have in mind?

No, you are right, it is a scheduler's decition, so must be done in
kernel-space.

-- 
					    Gilles.


      reply	other threads:[~2008-09-04  7:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-04  7:13 [Xenomai-core] First thoughts on fast xnsynch Jan Kiszka
2008-09-04  7:17 ` 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=48BF8B7A.1070507@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=jan.kiszka@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.