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



Thanks, DS. So POSIX does has such a bug?
What do you mean "This bug usually occurs because a thread called
pthread_cond_wait when it should not have." I think whether a thread
should call pthread_cond_wait is the merely logic of my problem,
right?

On Sep 29, 11:02 am, David Schwartz <dav...@xxxxxxxxxxxxx> wrote:
On Sep 29, 10:07 am, calvin <chima1...@xxxxxxxxx> wrote:

Thanks, but this has nothing to do with predicater. The threads waits
on a cond "never" wake up, even some other threads broadcasts.
Also, this is rare, and only happens when CPU load is high. In 99.9%
time it works well. That's why I suspect it's a POSIX's bug.

This bug usually occurs because a thread called pthread_cond_wait when
it should not have. You must check the predicate before calling
pthread_cond_wait.

DS

.



Relevant Pages

  • Re: Grumble (wrench report) Grumble
    ... The Leatherman wrote: ... > I was calling to see if they will order and then I only have to make ... Then we go back and review the kitting ... I don't know that the Motor Company is as careful as we, but I suspect ...
    (rec.motorcycles.harley)
  • Re: program runs almost twice as slow on 2 CPU machine when 1 CPU
    ... I would suspect interrupts... ... it would be a good idea for you to learn what interrupts are ... stopped dead in its tracks when CPU load, ... case 1, run two app concurenlly, both app takes 12 minutes ...
    (microsoft.public.win32.programmer.kernel)
  • Re: I wonder if they know what theyre bidding on
    ... Never mind -- I got MBT's fix. ... Calling that CD "suspect" is pretty slimy, ...
    (rec.music.classical.recordings)
  • Re: Getting ready to reinstall SBS...defrag questions
    ... that limit it's CPU load and optimize what/where we want. ... that's crazy and just creates fragmentation. ... gives most clients file servers the best performance. ... Calling an illegal alien an "undocumented worker" is like calling a ...
    (microsoft.public.windows.server.sbs)
  • Re: 42 Questioons
    ... form obviously is calling for the detailed answer. ... in not supplying that because someone else already posted it. ... I have in mind something like predicate ...
    (talk.origins)

Loading