HackerTrans
TopNewTrendsCommentsPastAskShowJobs

FFFXXX

no profile record

comments

FFFXXX
·11 mesi fa·discuss
I think you are quoting from https://learn.microsoft.com/en-us/dotnet/api/system.threadin...

"In C#, using the volatile modifier on a field guarantees that every access to that field is a volatile memory operation"

This makes it sound like you are right and the volatile keyword has the same behaviour as the Volatile class which explicitly says it has acquire-release ordering.

But that seems to contradict "The volatile keyword doesn't provide atomicity for operations other than assignment, doesn't prevent race conditions, and doesn't provide ordering guarantees for other memory operations." from the volatile keyword documentation?
FFFXXX
·11 mesi fa·discuss
The part about C# volatile accesses using release-acquire ordering seems to be wrong if I read the C# docs correctly.

"There is no guarantee of a single total ordering of volatile writes as seen from all threads of execution"

https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...
FFFXXX
·anno scorso·discuss
Compare the average republican sentiment to this regarding the railway strike / paid sick days: https://www.ibew.org/media-center/Articles/23Daily/2306/2306...

I don't think you can simply hand-wave the differences between your two parties. There do seem to be substantially different outcomes for the people affected by these issues.
FFFXXX
·anno scorso·discuss
https://www.npr.org/2015/03/02/390245038/ben-franklins-famou...