From: Peter Osterlund <petero2@telia.com>
To: Ralph Campbell <ralphc@nikto.sfbay.sun.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: wait_queue_t is fundamentally broken; need pthread_cond_t
Date: 28 Feb 2004 08:54:29 +0100 [thread overview]
Message-ID: <m2k727myfe.fsf@p4.localdomain> (raw)
In-Reply-To: <200402272309.i1RN98bk002304@nikto.sfbay.sun.com>
Ralph Campbell <ralphc@nikto.sfbay.sun.com> writes:
> [1.] One line summary of the problem:
> wait_queue_t is fundamentally broken; need pthread_cond_t
>
> [2.] Full description of the problem/report:
> I hate to be the bearer of bad news but the programming model
> for using wait queues is fundamentally broken and should be
> replaced with something like pthread_cond_t. Here is an example
> taken from chapter 5 of "Linux Device Drivers", 2nd edition,
> by Rubini & Corbet:
I suggest you read the "Going to Sleep Without Races" section in
chapter 9 of that book if you want to understand why you are wrong.
--
Peter Osterlund - petero2@telia.com
http://w1.894.telia.com/~u89404340
prev parent reply other threads:[~2004-02-28 7:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-27 23:09 Ralph Campbell
2004-02-27 23:22 ` Linus Torvalds
2004-02-28 7:54 ` Peter Osterlund [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=m2k727myfe.fsf@p4.localdomain \
--to=petero2@telia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ralphc@nikto.sfbay.sun.com \
/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
all inboxes | Powered by JetHome®