Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Programming Threads > Re: Is this a w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 12 Topic 4061 of 4146
Post > Topic >>

Re: Is this a well-known bug of POXIS pthread_cond_timewait()?

by "Chris M. Thomasson" <no@[EMAIL PROTECTED] > Sep 30, 2008 at 03:34 AM

"Chris M. Thomasson" <no@[EMAIL PROTECTED]
> wrote in message 
news:p3nEk.576$kc.205@[EMAIL PROTECTED]
> <chima1979@[EMAIL PROTECTED]
> wrote in message 
> news:d782d680-0082-4d0a-8d9f-47306818ebb2@[EMAIL PROTECTED]
>> In a large system that is implemented using POSIX thread, a weird
>> thing happens:
>> a thread that pthread_cond_timewait() on a condition variable misses
>> signals, ie. some thread pthread_cond_broadcast() but nobody was waken
>> up.
>> This rare problem happens when the system is busy, such as CPU load is
>> high.
>>
>> I know POSIX has spurious wakeup problem, ie. wake up without
>> signaling. But this problem, signaling but not wake up, is different.
>> Is that a well-known bug of POSIX?
>
> Please post high-level pseudo-code demonstrating your predicate and its 
> potential producers and consumers...

IMVHO, this task should be easy for you... If you don't know off hand what

code actually mutate(s) the predicate into a state which indeed warrants a

signal/broadcast (e.g., producer(s)) then your in trouble from the get
go... 
Same applies to consumer(s) and how they react to the specific mutation(s)

issued by said producer(s).
 




 12 Posts in Topic:
Is this a well-known bug of POXIS pthread_cond_timewait()?
chima1979@[EMAIL PROTECTE  2008-09-28 20:03:13 
Re: Is this a well-known bug of POXIS pthread_cond_timewait()?
"Chris M. Thomasson&  2008-09-29 02:58:22 
Re: Is this a well-known bug of POXIS pthread_cond_timewait()?
calvin <chima1979@[EMA  2008-09-29 10:07:40 
Re: Is this a well-known bug of POXIS pthread_cond_timewait()?
David Schwartz <davids  2008-09-29 11:02:44 
Re: Is this a well-known bug of POXIS pthread_cond_timewait()?
Hallvard B Furuseth <h  2008-09-29 20:33:22 
Re: Is this a well-known bug of POXIS pthread_cond_timewait()?
Hallvard B Furuseth <h  2008-09-29 20:34:41 
Re: Is this a well-known bug of POXIS pthread_cond_timewait()?
"Chris M. Thomasson&  2008-09-30 03:24:02 
Re: Is this a well-known bug of POXIS pthread_cond_timewait()?
calvin <chima1979@[EMA  2008-09-29 11:38:43 
Re: Is this a well-known bug of POXIS pthread_cond_timewait()?
David Schwartz <davids  2008-09-29 19:22:00 
Re: Is this a well-known bug of POXIS pthread_cond_timewait()?
"Chris M. Thomasson&  2008-09-30 03:26:28 
Re: Is this a well-known bug of POXIS pthread_cond_timewait()?
"Chris M. Thomasson&  2008-09-30 03:34:58 
Re: Is this a well-known bug of POXIS pthread_cond_timewait()?
sean_in_raleigh@[EMAIL PR  2008-09-30 07:11:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 8:20:44 CST 2008.