Re: The condition variable test
- From: Sergei Organov <osv@xxxxxxxxx>
- Date: Wed, 16 Apr 2008 15:16:42 +0400
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.
.
- References:
- The condition variable test
- From: Szabolcs Ferenczi
- Re: The condition variable test
- From: Markus Elfring
- Re: The condition variable test
- From: Szabolcs Ferenczi
- Re: The condition variable test
- From: Sergei Organov
- Re: The condition variable test
- From: Szabolcs Ferenczi
- The condition variable test
- Prev by Date: Can you refer me to a live example of a non async-safe code?
- Next by Date: Re: Can you refer me to a live example of a non async-safe code?
- Previous by thread: Re: The condition variable test
- Next by thread: Re: The condition variable test
- Index(es):
Relevant Pages
|
Loading