Tutorial on @synchronized for thread safe code

Good post by Steve Vlaminck on using @synchronized to ensure thread-safe modifications to objects:

@synchronized is a great shorthand mutex lock. It may not be the most efficient lock, but chances are you won’t notice. If you’re just getting started with threading, I highly recommend getting more familiar with it.