in reply to Re^16: Threads sharing global variable (disingenous)
in thread Threads sharing global variable
The implication was that the sample code, as presented by ikegami, cannot have two of its lock-protected sections executing in parallel.
Exactly so! That is exactly why it is broken! So what point are you trying to make? (Don't bother to answer that.)
What is the use of having two threads, and then constraining them to run alternately, one at a time, in lock step?
It's a nonsense. It makes no sense. It is fatuous, pointless, and broken.
|
|---|