in reply to Re^17: Threads sharing global variable (disingenous)
in thread Threads sharing global variable
But, you have said it yourself, in here
That's not the point. The points are:
Even if it never hangs on Linux -- and no one has convinced me that it won't eventually -- it is still broken on Linux, be it is a logical nonsense.
That it demonstrates its brokenness so quickly and obviously on Windows is just a side issue.
...
Would it be possible to share this knowledge, to outline the guiding principles and design considerations, so as to allow us to build robust, working solutions ourselves, all the while avoiding the dangerous pitfalls, taboos and uncertainties? Much obliged!
I assume that is sarcasm. But, the answer is no. I have no idea how to condense and neatly parcel up 13 years of Perl threading experience; let alone the accumulated knowledge, feel and intuition from writing literally hundreds of threaded programs, big & small, in C, C++, Java, and half a dozen or more other languages that I've done since I wrote my first threaded program under OS/2 in 1987.
Maybe in the future they'll be able to do brain dumps; till then, the only way I know of to learn stuff, is to use it. For real.
|
|---|