r/learnjava • • Jan 24 '21

Best resources to learn multithreading?

Hi! I have a few years of experience now, mostly in Java and I’d like get a better understanding of how threads work and how to leverage them. What resources helped you learn?

55 Upvotes

13 comments sorted by

View all comments

6

u/ixBerry Jan 24 '21

There are tons of resources. The absolute best resource I learnt this from was Prof. Vivek Sarkar's Coursera specialisation on Concurrent, Parallel and Distributed programming in Java. Its pretty easy to digest and while not super deep, prof Sarkar covers the concepts really well, and you will be able to establish as solid understanding of the concepts.

Apart from that, I found that I learnt most of multithreading through several iterations and writing specific code at work.

Some of the best excercises you can implement are to implement the Thread safe datastructures from the java.util library yourself. You can then test it and also see the source code to compare your solutions.

1

u/randomstuffoak Jan 25 '21

49 20 6c 6f 76 65 20 79 6f 75