Peter Booth
Posts: 62
Nickname: alohashirt
Registered: Aug, 2004
|
|
Re: Java Threads
|
Posted: Sep 20, 2005 8:37 PM
|
|
The Wong and Oaks book is sufficiently flawed for me to have disposed of my copy. I found it to be a confusing, ambiguous and at times misleading - these are critical errors when the topic is concurrent programming. Concurrent programming is complex, has subtle edge cases, and is often described in an overlsimplistic fashion.
Volatile in Java 1.4 is simply broken and of no value. In Java 1.5 it is no longer the case that increment operations on primitives must be synchronized to guarantee correctness in a multitheaded context. The atomic variables in java.util.concurrent.atomic are a new language feature that allow thread safe operations (that derive from a conditional compare and Set instruction) without incurring the cost of synchronization.
The Lewis and Berg book is very different from Wong & Oaks, and extremely useful at a nuts and bolts level. I think the software world is still crying out for the ultimate Java threading book that combines correctness, clarity of exposition, deep coverage, and breadth.
|
|