Consider John makes a question, in example:
Q: What is a variable?
Alice posts an answer with several parts. Most correct, but it has a mistake. In example:
A: Such and such. List of types of variables with description and purpose. Volatile variables solve all synchronization troubles. Such and such.
How to deal with this?
I make a comment about volatile variables not solving all synchronization troubles but upon getting such comment Alice refuses to acknowledge the mistake. And there is no space in comments to elaborate.
I can't post an answer with an example of how volatile variables fail at some synchronization trouble since it would be off-topic to John's question.
I feel posting a new answer is not appropriate since, as far as my knowledge gets, Alice's answer is right and complete except for that mistake. So it would be just a rehash of an old answer with that bit corrected.
I might make a new self-answered question about volatile variables and synchronization. But people reading Alice's answer would still be getting wrong information with no pointer to the correct one.
I'll clarify my words. I post a comment to Alice's answer stating that she is wrong about volatile values solving all synchronization troubles; and she replies with a comment stating she disagrees. Thus editing her answer is not a possibility. Thus none of the three options by Alexander work. The answer is not fundamentally flawed, most of it is correct and useful. I know how to correct it, but nobody is allowed to edit the answer since Alice explicitly has refused it.
It is also worth mentioning that I might be wrong and maybe Alice is right. The "What is a variable?" question and the "Such and such. Volatiles solve synchronization troubles" answer are made up. In that example I am right. In other cases I might be wrong.
volatile
. Too broad.volatile
does not solve synchronisation issues in general. (it works on many embedded systems, though). That's why atomics have been added to both languages (and with mostly identical features).