I keep running across code, some old and some new, that uses the volatile keyword in an attempt to make the code thread "safe". Using that is always suspect, and without a truly deep understanding of the underlying hardware I doubt you could ever prove it was safe. With todays modern dual core processors, you can be 100% certain that it is unsafe.
In a nutshell volatile means to fetch the value from memory, and ignore whatever may be in the cache. What does that mean when you have two caches? At any rate when I see these items in the code I remove them. What is doubly irritating about them is that I tend to see them in java. Where classes like AtomicInt and AtomicBoolean are part of the libraries.
I keep hearing about all these toys manufactured in China, which contain too much lead. My question is why do they contain lead at all, and what in the hell are the Chinese doing? As a result of this I now have to manually go through all of the toys we have for our son and check them to make sure they are lead free. Sounds easy, but there are a lot of toys to go through, and I am not sure I will be able to find the information easily.
At least his favorite toy is lead free. A Skwish from Manhattan toy.
V nz jevgvat guvf cbfg va ebg13, juvpu lbh pna svaq ng ebg13.pbz, whfg gb zrff jvgu zl oybt ohqqvrf. Fheryl gurl jvyy svther vg bhg. :c
I got to watch the finally for the Ultimate Fighter today. I was disappointed in the fight. It was over too quickly. The rest of the fights on the card were pretty fun to watch though.