Re: The condition variable test



Szabolcs Ferenczi <szabolcs.ferenczi@xxxxxxxxx> writes:

On Apr 15, 8:38 pm, Sergei Organov <o...@xxxxxxxxx> wrote:
Szabolcs Ferenczi <szabolcs.feren...@xxxxxxxxx> writes:

[...]

I have made my point couple of times before on this discussion list
but why not summarize here again:

[...]

However, the condition variable is just an optimization tool for run
time efficiency. It has been invented for that purpose as well.

You keep saying this again and again, but fail to provide any evidence.
References to yourself don't count as evidence, sorry.

Evidence is the argument supported by code examples. Of course needed
is your own understanding.

Still can't give any references (but to yourself) supporting your
*personal* opinion ? ;) Don't you think that it could be you who lacks
understanding?

Please notice that your examples only prove that condvars are "just an
optimization" in your particular examples. On the other hand, to prove
you are wrong, it's enough to give at least one counter-example where
removing condvar will lead to program misbehavior.

Provided you know what real-time thread priorities are about, it should
be rather easy for you to come-up with such a counter-example yourself.
Hint: implement high-priority thread waiting for a condition that will
be signalled from a low-priority thread.

-- Sergei.
.



Relevant Pages

  • Re: Seriously OT - primarily for Bill
    ... To distinguish the court system from "scientists". ... scientific method are not the same thing. ... lack of understanding of what the scientific method actually is. ... Decisions should be based on the evidence ...
    (uk.tech.digital-tv)
  • Re: The Vinland Maps Ink
    ... >>absence of the most basic knowledge of what the ink actually is, ... >matters in these fields is the evidence, and as each new piece of evidence ... it must be fitted in to the body of understanding on the ... particular bridge any less hypothetical. ...
    (sci.archaeology)
  • Re: The Vinland Maps Ink
    ... >absence of the most basic knowledge of what the ink actually is, ... But what you regard as "mere pontification with on real substance" is ... matters in these fields is the evidence, and as each new piece of evidence ... it must be fitted in to the body of understanding on the ...
    (sci.archaeology)
  • Re: thoughts on Jesus
    ... I have a pretty good understanding of how my wife will ... You said that evidential based science is ... No I'm not - I'm saying that human behaviour is an example of ... You don't have evidence to support them. ...
    (talk.origins)
  • Re: Tom Kratman at Baen -- cringeworthy?
    ... that virtually every physical constant or number is set up to favor ... You still assumed something not in evidence. ... I don't think I can grant you that one David. ... I don't know if the fault is in my understanding or your writing. ...
    (rec.arts.sf.written)

Loading