Why Atomic operations are not always thread safe

A question I saw on StackOverflow: Is accessing a bool field atomic in C#? In particular, do I need to put a lock around:class Foo{private bool _bar;//... in some function on any thread (or many threads)_bar = true;//... same for a readif (_bar) { ... }}This question was answered quickly by several users that quoted … Continue reading Why Atomic operations are not always thread safe

Three Fixes that helped me when windows failed to Install an update

I think that it happen to me at least once in each computer I own or worked on: While running Windows (or Microsoft) update I get an error claiming that the update could not be installed. This used to be a source of frustration for me. I needed to Google around and try solutions and … Continue reading Three Fixes that helped me when windows failed to Install an update