views:

108

answers:

3

I have always been kind of confused by threads, and my class right now makes heavy use of them. We are using java.util.concurrent but I don't even really get the basics. UpDownLatch, Futures, Executors; these words just fly over my head. Can you guys suggest any resources to help learn what I need from the ground up?

Thanks a lot in advance!

+4  A: 

Read "Java Concurrency In Practice" by Brian Goetz. Great book.

Or Doug Lea's "Concurrent Programming In Java". Old school, terrific stuff. Pre-dates the concurrent package, but it's the basis for a lot of it.

duffymo
CPiJ is great for learning the solid foundations of concurrent programming
John V.
+4  A: 

I'm assuming that you already went through the Java tutorial's threading chapter?

There are many good books on threading in general, but also specifically in Java.

For example, Java Concurrency in Practice

Uri
+2  A: 

If you are looking for a beginners book, check out Java Thread Programming by Paul Hyde . The other books like "Java Concurrency in Practice" and "Concurent Programming in Java" can be read to get an in depth understanding of concurrency (and specially the new java.util.concurent API) but may not be good for beginners.

Rahul