In this article I’m going to share some details about the
volatile keyword available in a number of programming languages like C++, C, Java. During my professional career, I have found out that the
volatile type qualifier is frequently misunderstood and, what is even worse, incorrectly used (leading to nasty bugs).
I’ll show the differences between C/C++ and Java languages and present some examples. However, this is not a definitive guide. The main purpose of this article is to give some overview and highlight potential problems.
volatile keyword differs from language to language, thus we can’t just write one definition for all. Fortunately, the
volatile type identifier serves the same purpose in C and C++ (albeit C++ slightly extends the definition). Czytaj dalej Ethereal stuff – volatile