lkml.org 
[lkml]   [2004]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: wait_queue_t is fundamentally broken; need pthread_cond_t
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.065 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site