How to learn about Threads, especially in Java

I have always been embarrassed by threads, and my class now uses them heavily. We use java.util.concurrent, but I donโ€™t even understand the basics. UpDownLatch, Futures, Executors; these words just fly over my head. Can you guys suggest any resources to help find out what I need from scratch?

Many thanks!

+6
java multithreading java.util.concurrent
source share
3 answers

I assume that you have already completed the chapter in the Java tutorial tutorial?

There are many good books for streaming in general, but also in Java.

For example, Java Concurrency in practice

enter image description here

+11
source share

Read Brian Goetz's Java Concurrency In Practice . Great book.

Or Doug Lea "Parallel Programming in Java" . Old school, awesome stuff. A parallel package precedes, but it is the basis for its large number.

+5
source share

If you're looking for a beginner's book, check out Paul Hyde's Java Thread Programming . Other books, such as "Java Concurrency in Practice" and "Concurent Programming in Java", can be read to gain a thorough understanding of Concurrency (and especially the new java.util.concurent API), but may not be very useful for beginners.

+3
source share

All Articles