volatile, thread safety and memory ordering
I came across this excellent write up by Scott Meyers and Andrei Alexandrescu. A lot of people expect more things from volatile than what's defined in the standard and this is a good warning message for them. It also touches on the multiprocessor memory ordering issue and that's another area where a lot of casual programmers are not even aware of. Enjoy the reading! ( Dec 22 2004, 11:58:14 AM PST ) Permalink Comments [2]Post a Comment:
Comments are closed for this entry.


__asm(".volatile"); // C/C++ code __asm(".nonvolatile");work around the ordering problem?Posted by 217.162.219.36 on December 22, 2004 at 02:12 PM PST #
Posted by Seongbae Park on December 22, 2004 at 11:37 PM PST #