"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).


|