Re: Linux pthread_cond_broadcast waking only one thread out of four waiting



On Aug 29, 2:02 pm, Dave Butenhof <david.buten...@xxxxxx> wrote:
Szabolcs Ferenczi wrote:
This is a beginner misconception which is not surprising in your side.
It is not any predicate but shared variables. What you call predicate
is an expression with shared variables in it.

.... Then buy David Butenhofs
excellent book and read it a couple of times.

First he must do his homework. He had a big face talking about
something he cannot do. At least so far he failed to do. And it is not
an accident.

You completely neglect the fact that you have no authority to assign
"homework" to anyone on this list, nor any right or excuse to pretend to
pass some sort of judgment when they refuse.

It is not about authority. You claimed something and if you are a man
you do prove it. Remember, you failed to prove your statement so far.
So simple is it.

You can try to escape by screaming like this but it does not really
save you.

Just to remember what we are talking about:

<quote from=
http://groups.google.com/group/comp.programming.threads/msg/7a0e9c383420d3fc

On Feb 21, 2:09 pm, Dave Butenhof <david.buten...@xxxxxx> wrote:

Szabolcs Ferenczi wrote:

[...]
That is why you have to use semaphore for event signaling.

That's silly.

Really? Good that we have some clever guys around. Then, I invite you
to publish your clever version here. I did publish here something that
you claim to be silly. Not very nice but we are certainly different.

Especially, I am curious to see your algorithm where you demonstrate
how do you use the condition variable for event signaling.
</quote>

Why would I possibly wish
to waste my valuable time trying to prove something to you that everyone
else already knows and that you will never admit anyway?

You do not have to. It is up to you. However, until you do not do your
homework, you are proven that you do not understand the role of the
condition variable. That is the fact so far whether you like it or
not.

Remember, you said you can signal problem level event just with one
condition variable. Do it.

You have made it abundantly clear that your only purpose in
participating in this list is to annoy and insult people who are trying
to volunteer their time helping others.

If you mean yourself I could only see arrogance from you on this list
before but no help. You think too much about yourself and the hybris
just overwhelms your mind. I have put here fixes for problems before
but you and the other folks just came barking around like dogs.

Helping others? What are you talking about, my friend? Just take the
discussion topic where you entered with the silly-claim.

"Do I ever need to do a sched_yield() for pthread_cond_signal(..) to
work?"
http://groups.google.com/group/comp.programming.threads/msg/fc06ff81b98a9823

There the author of the topic opener post had the same problem as this
one. He tried to use a condition variable the way as if it was a
semaphore. I have explained the problem to him and I have provided him
a fix both with semaphore and with condition variable.

The condition variable version:
http://groups.google.com/group/comp.programming.threads/msg/41fa64966fe090ca

The semaphore version:
http://groups.google.com/group/comp.programming.threads/msg/64cfa20ab92bcd12

And what did you do, my friend? You kept barking, attacking, and
showing extreme hybris and arrogance. You made claims that are
obviously wrong and what you have failed to prove them so far.

This is the fact about voluntarily helping the others, my friend.

[...]
The only reason that I, or anyone on this list with any actual knowledge
to share, bothers to respond to you at all is the fear that someone who
really IS a "beginner" might listen to your nonsense.

Well, if you say that the condition variable test is a nonsense,.
http://groups.google.com/group/comp.programming.threads/browse_frm/thread/0ff7ac10adadee22
you are proving your own incompetence. However, it is not because I
say so.

If you were smart enough to see the value of the simple stuff like
that you could help others to start using it and they could avoid easy
mistakes like the starter of this discussion thread. However, it is so
simple test and it can help so much to the inexperienced ones. That
much about voluntarily helping the others, buddy.

You might think about yourself that you are a God or something similar
super creature but really you cannot understand a basic thing due to
your enormous hybris.

Yes, it's true
that it's unrealistic for anyone to think they can make the net safe
from trolls,

The biggest troller here is your little pet whom you were trying to
defend by entering with the silly-note into the discussion where he
proved incompetence. You just blindly joined to him by your ignorance
and arrogance.

Talking about trolling, it is just enough to remember you on the buddy
who just blindly jumps at any of my posts just like a crazy monkey.

A simple example: Just see what humble helping advice I have added to
the topic starter here in this discussion thread and what you and your
troller friends have made out of it. It is amazing. And it happens
from time to time. On top of all that, you and the like call me a
troller. Incredible aggression what can only come from your countrymen
in the whole world.

but it's emotionally difficult to sit back and watch the
path of destruction you leave behind without trying to do something.

Instead of sitting back, try to do your homework, I would advise to
you.

Best Regards,
Szabolcs
.



Relevant Pages

  • Re: Democratic debate
    ... Uh, I don't quite recall. ... her friend a laughingstock round these parts, "helping" him by ...
    (rec.music.gdead)
  • Re: memberships (and IQ)
    ... Supporting father and at least one grandparent plus wife and 2 kids with no problem. ... He's totally *effective* as a whole person in all sorts of ways. ... helping me do something for a friend whre i didnt have the gear or helping me get a simpler 'not too fancy worded' explain of something related to his area that no one else could dummy down for me. ...
    (alt.support.chronic-pain)
  • reinstall XP from upgrade XP SP3 disk
    ... I have been helping a friend via phone and email to get her old computer ... She cleaned the hard drive by wiping with Part Wizard. ...
    (microsoft.public.windowsxp.general)
  • Count and summarize text fields dcountda/pivot?
    ... I am helping a friend to make a planning scheme fo here shop, ...
    (microsoft.public.excel.misc)