On Fri, Mar 31, 2023 at 06:26 PM, Richard L King wrote:
took the trouble to understand what I was doing
I do understand. But I'm not going to argue about this with you any more. Choose to believe what you want.
On Fri, Mar 31, 2023 at 06:26 PM, Richard L King wrote:
With that correction, it seems to work fine (though you seem reluctant to
admit it ¨C so can you provide any examples of where it doesn¡¯t help?).
It does help, yes... but it does not solve the problem. It's pretty clearly a race condition and adding a delay ends up only masking the problem, not solving it. If you run the example enough times it will still hang eventually. You should try it and see for yourself to see my point. You can add a longer and longer delay and then the problem may only happen 1 in a 1000 times but nonetheless it is not a fix or even a good workaround IMHO.
This is the nature of race conditions... you can mask them if you want. The challenge is to reliably reproduce them so they can be fixed properly instead; at least from a development perspective.
I think people should be aware of this. If someone is happy with a periodic failure that's up to them.