Re: wait_queue_t is fundamentally broken; need pthread_cond_t
From: Peter Osterlund (petero2_at_telia.com)
Date: 02/28/04
- Previous message: David S. Miller: "Re: [PATCH] performance problem with established hash"
- In reply to: Ralph Campbell: "wait_queue_t is fundamentally broken; need pthread_cond_t"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Ralph Campbell <ralphc@nikto.sfbay.sun.com> Date: 28 Feb 2004 08:54:29 +0100
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: David S. Miller: "Re: [PATCH] performance problem with established hash"
- In reply to: Ralph Campbell: "wait_queue_t is fundamentally broken; need pthread_cond_t"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|