in reply to Re^2: Threads sharing global variable
in thread Threads sharing global variable

Lots of unnecessary locking and unlocking,

And your version is sh*te! (Hint:locks should be held for as small a scope and for as little time as possible!). It may work for this specific do nothing, trivial example, but is entirely useless as a generic model of usage

Threads that lock all their shared variables when they start and never release them. What a great idea. I wonder why nobody's thought of doing that before(*).

And, as you you know, I'm not interested in your opinion (on anything), so feel free to feed your BS to the OP if you must, but stop polluting my day.

*Oh right. Because it only makes sense in a lock-stepped latching scenario, and besides that real examples of the need for that are as rare a rocking horse droppings; it is a completely stupid way to use threads.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^4: Threads sharing global variable
by ikegami (Patriarch) on Mar 04, 2016 at 16:35 UTC

    Threads that lock all their shared variables when they start and never release them.

    Are you an idiot or a troll? I'm tired of your endless, rude and completely wrong "corrections". Learn to read.

    And your version is sh*te! (Hint:locks should be held for as small a scope and for as little time as possible!)

    The lock is held no longer in my version than it is in your version[1]. Go read the post again. Specifically, the notes at the bottom. They specifically address your misconceptions.


    1. In fact, mine holds it for a shorter period, but only by milli- or nano-seconds.
      I'm tired of your endless, rude ...

      I'm easily avoided.

      For the rest; you know better, but typically of you, you'll prevaricate and obfuscate until the bitter end.

      Which is why I'd be only too happy if you never felt the need to direct your BS at me ever again.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
      In the absence of evidence, opinion is indistinguishable from prejudice.