java.util.concurrent has a ton of great classes. If you need to do shared memory concurrency, it probably has something there to help you.