The ABCs of Synchronization for Intermediate Readers
Java threads, especially synchronization, are among my favorite things
to read about. Jeff Friesen's Java Tech: The ABCs of Synchronization, Part 2 makes the trickier problems understandable without assuming you already know the subject inside out.
The article introduces wait and notify, walks through a producer-consumer example, outlines the problem with local copies of values, and throws in a brief look at the new classes in java.util.concurrent (J2SE 5.0). There's also a particularly interesting exercise at the end to see what you've learned.
Related articles
Related CZ Podcast episodes
- #3 · Java 6 SE, Vývoj webových aplikací
Dagi and Filemon discuss Java 6 and web application frameworks. · Czech audio
- #1 · Vývojová prostředí v Javě
The first CZ Podcast episode looks at Java development environments. · Czech audio