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: Yo Darwin
    ... With respect to understanding the outer world IMO science-based faith is for example ... statement of what I too regard as the obvious. ... what I regard as compelling scientific logic and empirical evidence, ... it quite clear that I do not understand the science here well enough ...
    (rec.music.gdead)
  • Re: The reason humans were created
    ... the evidence of two or more identical manuscripts, ... history of the muslims is utterly irrelevant to muslims, ... and internally consistent "common understanding" serviceable as judicial ... Such is the limitation on the human intellect, ...
    (soc.religion.islam)
  • 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)