This month’s Effective Concurrency column, “volatile vs. volatile”, is now live on DDJ’s website and also appears in the print magazine. (As a historical note, it’s DDJ’s final print issue, as I mentioned previously.)
This article aims to answer the frequently asked question: “What does volatile mean?” The short answer: “It depends, do you mean Java/.NET [...]
Archive for the ‘Java’ Category
Effective Concurrency: volatile vs. volatile
Posted in C# / .NET, C++, Concurrency, Java on January 12, 2009 | 12 Comments »
Effective Concurrency: Lock-Free Code — A False Sense of Security
Posted in C# / .NET, C++, Concurrency, Java on August 5, 2008 | 13 Comments »
DDJ posted the next Effective Concurrency column a couple of weeks earlier than usual. You can find it here: “Lock-Free Code: A False Sense of Security”, just went live on DDJ’s site, and also appears in the print magazine.
This is a special column in a way, because I rarely critique someone else’s published code. However, [...]
Constructor Exceptions in C++, C#, and Java
Posted in C# / .NET, C++, Java, Software Development on July 25, 2008 | 34 Comments »
I just received the following question, whose answer is the same in C++, C#, and Java.
Question: In the following code, why isn’t the destructor/disposer ever called to clean up the Widget when the constructor emits an exception? You can entertain this question in your mainstream language of choice:
// C++ (an edited version of the original [...]