public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ulrich Drepper <drepper@redhat.com>
To: "Peter Wächtler" <pwaechtler@mac.com>
Cc: Manfred Spraul <manfred@colorfullife.com>,
	linux-kernel@vger.kernel.org, akpm@osdl.org, torvalds@osdl.org,
	bo.z.li@intel.com
Subject: Re: [PATCH] [2/2] posix message queues
Date: Sun, 05 Oct 2003 08:58:44 -0700	[thread overview]
Message-ID: <3F803FB4.6050900@redhat.com> (raw)
In-Reply-To: <1065282666.2448.57.camel@picklock.adams.family>

Peter Wächtler wrote:

> Userspace translates SIGEV_THREAD to something that uses SIGEV_SIGNAL.
> Ulrich made a suggestion to use a futex, but I think of something even
> more lightweight. Just put the requestor right to sleep.

This has the disadvantage that it codifies the requirement of creating
the thread for the userlevel signaling ahead of time.  While this is a
valid implementation it is not the best (resource-wise) and doesn't
allow for optimizations.  Using a futex will allow to implement a scheme
where one single thread does the waiting for possibly many requests.
Imagine the benefits in case there are dozens of outstanding requests.
The additional system exit+entry isn't that expensive to justify
removing the flexibility.

-- 
--------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------


  parent reply	other threads:[~2003-10-05 15:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-03 15:59 [PATCH] [2/2] posix message queues Peter Wächtler
2003-10-03 18:16 ` Manfred Spraul
2003-10-05 12:42   ` Peter Wächtler
2003-10-05 14:39     ` Arjan van de Ven
2003-10-05 15:58     ` Ulrich Drepper [this message]
2003-10-03 22:22 ` Jakub Jelinek
2003-10-05 12:42   ` Peter Wächtler
2003-10-04  6:39 ` Ulrich Drepper
  -- strict thread matches above, loose matches on Subject: below --
2003-11-25 11:42 [PATCH] 2/2 POSIX " Michal Wronski

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=3F803FB4.6050900@redhat.com \
    --to=drepper@redhat.com \
    --cc=akpm@osdl.org \
    --cc=bo.z.li@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manfred@colorfullife.com \
    --cc=pwaechtler@mac.com \
    --cc=torvalds@osdl.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