Bad concurrency advice: interned Strings- May 8, 2008 I just read Thread Signaling from Jacob Jenkov. It is fine as far as it goes to introduce the reader to Object.wait() and Object.notify(). But it has one fatal flaw: it uses a literal java.lang.String for coordinating between threads. Why is this wrong Strings are interned by the compiler. To quote the javadocs: All literal strings and string-valued constant expressions are interned. Using a literal string means that any other code anywhere in the JVM, even in other libraries, which use the.http://binkley.blogspot.com/2008/05/bad-concurrency-advice-interned-strings.html JVM hints from Dautelle- May 8, 2008 Jean-Marie Dautelle on Realistically real-time, or getting real-time-like behavior from the non-real-time JVM.http://binkley.blogspot.com/2008/05/jvm-hints-from-dautelle.html Good News - JavaOne 2008- May 2, 2008 JPMorgan is sending me to JavaOne 2008! Sorry for no posts since November work has been inordinately busy. I will post from San Francisco.http://binkley.blogspot.com/2008/05/good-news-javaone-2008.html |