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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Threads sharing global variable
by ikegami (Patriarch) on Mar 04, 2016 at 16:35 UTC | |
by BrowserUk (Patriarch) on Mar 04, 2016 at 19:25 UTC |