Tips for java concurrency.